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

Grid AutoComplete Editor

3 Answers 178 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 27 Apr 2012, 03:13 AM
I am trying to add an autocomplete editor to a grid. I have tried to replicate the simplest example possible.

http://jsfiddle.net/grippstick/YKA2c/34/ 


The main problem is that when you select something in the auto complete the first time it just blanks it out. In the samples that are provided they never seem to use the normal scenario where you have an id and a name.

The other huge problem is that it displays the ID first and not the name.

Can anyone help with this? 

3 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 13 May 2012, 07:09 AM
Hi Joshua,

I think you should be using a ComboBox, not an AutoComplete.

Autocomplete is a text only lookup - your fiddle includes setting dataTextField and dataValueField on the AutoComplete - it does not support dataValueField

Regards
John
0
Joshua
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 14 May 2012, 11:54 PM
Does the combobox support autocomplete? I could have a few thousand items and i want to let the user search instead of having a giant drop down that they spend all day scrolling through.
0
John
Top achievements
Rank 1
answered on 15 May 2012, 12:20 AM
Yes is does, check out the demos.
Tags
Grid
Asked by
Joshua
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Joshua
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or