PDA

View Full Version : localstore Combobox setvalue() not working in following case



coldflame
22 Jul 2012, 11:09 AM
Hi Every one,

I have a weired situation with combobox setValue() function, it works fine in all cases when i do the following steps then it will set the id instead of display value, steps are
- Type some text in combobox, it will give you local type ahead feature search the list and give you the matched selected list, select the field and hit enter.
- Now call setValue("7") it will set the 7 instead of item value against this id, i have tried this setValue(7) as well.

I am using Extjs 4.1 and store is local store.

Thanks
Umair

coldflame
22 Jul 2012, 11:16 AM
I think when i type and perform search , the store hides the other values and when i call setValue('8') then it never show me the expected result,

Any body tell me how to refresh the store after type , the behavior is same as i type and after that i click dropdown error now the list is refreshed and then my setvalue function works properly.

Any quick response ?

coldflame
22 Jul 2012, 11:29 AM
store.clearFilter(true) is what i needed.

Thanks for reading the post :)