1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    15
    Vote Rating
    1
    rhonnel francisco is on a distinguished road

      0  

    Default 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..

  2. 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.

  3. #2
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Mumbai, India
    Posts
    191
    Answers
    10
    Vote Rating
    0
    bomslang has a little shameless behaviour in the past

      1  

    Default


    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.

  4. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    15
    Vote Rating
    1
    rhonnel francisco is on a distinguished road

      0  

    Default Sencha List and Combo box function

    Sencha List and Combo box function


    Quote Originally Posted by boomslang View Post
    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.
    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...

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi