This is a migrated thread and some comments may be shown as answers.

Need help with autoComplete grid functionality

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 25 Sep 2013, 03:05 PM
So I've been working on an autocomplete for a state grid field. Everything (for the most part) works fine, accept for about half the states
will display [object Object].

For example, if you add a new record and select New Hampshire as your state it will return [object Object]

Any help would be greatly appreciated!

http://jsbin.com/ohimef/42/edit 

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 27 Sep 2013, 07:10 AM
Hi Frank,

Thank you for the provided example. I examined it and noticed that the Autocomplete widget is using array of objects for its dataSource. As a result when you add a new dataItem to the Grid its States property gets an object value instead of string value - this is why you see [Object object]. I would recommend using array of strings for the Autocomplete widget's dataSource, as shown in this updated example.
 

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Frank
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or