-
30 Jun 2012 8:43 PM #1
Answered: Sencha List and Combo box function
Answered: Sencha List and Combo box function
Hi,
Badly need your help, i have a project and i use Sencha touch 2.0. So now here's the deal,.
I want to create a list and in top of that is a combo box showing some categories. Just for example a combo box with the countries in it and when i select Japan the list will reload displaying all the cities of japan and when i click Korea the list will reload displaying the cities of korea and so on and so forth.
im new to sencha touch i've already created the list and the combo box and i dont know how to make it work.. please help me...

Thanks in advance, if you could give me example that would much be beter..
-
Best Answer Posted by bomslang
You need to listen for the change event of selectfield ( combobox in ST2 ). There you can pass the selected value of your selectfield and filter the data store.
You're list will be changed as per selection.
-
1 Jul 2012 9:05 AM #2Sencha Premium Member
- Join Date
- Apr 2012
- Location
- Mumbai, India
- Posts
- 191
- Vote Rating
- -1
- Answers
- 10
You need to listen for the change event of selectfield ( combobox in ST2 ). There you can pass the selected value of your selectfield and filter the data store.
You're list will be changed as per selection.
-
1 Jul 2012 9:15 AM #3
Sencha List and Combo box function
Sencha List and Combo box function
Hi, thanks for the advice,. i'll try that one. But i dont know where to start, i am using MCV structure and my store is in separate js file. What im thinking is, how can i connect the listener to trigger a separate js which is the store as my target...hmmmmm

... If you could give me an example. if you know one in github that would be better. Because i cant find any... 


Reply With Quote