Dec 02, 2011, 10:00 AM
[CLOSED] Combo with Templates and Ajax
Have a questions about : https://examples1.ext.net/#/Form/Com...Custom_Search/ example:
What clears the value any time user clicks aside and do not pick an item from the list?
In my example what happens is that when user enters the searching criteria FOR THE FIRST TIME ONLY and after results are returned - the combo value being SET TO INITIAL VALUE (set on page load), which makes a problem since that (value, text) does not exists in the store anymore - a new store is created with the searching results only, so I have a value displayed instead of text.
On any subsequent searches the searching criteria is not replaced with anything after search results returned, so if user clicks aside the irregular value have been saved to the combo - fixed that with the clearing the combo if value does not exist in the store using the Change Listener.
What clears the value any time user clicks aside and do not pick an item from the list?
In my example what happens is that when user enters the searching criteria FOR THE FIRST TIME ONLY and after results are returned - the combo value being SET TO INITIAL VALUE (set on page load), which makes a problem since that (value, text) does not exists in the store anymore - a new store is created with the searching results only, so I have a value displayed instead of text.
On any subsequent searches the searching criteria is not replaced with anything after search results returned, so if user clicks aside the irregular value have been saved to the combo - fixed that with the clearing the combo if value does not exist in the store using the Change Listener.
Last edited by Daniil; Dec 02, 2011 at 1:35 PM.
Reason: [CLOSED]