1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    75
    Vote Rating
    0
    saravanakmr is on a distinguished road

      0  

    Default Help on ComboField (Listener Related)

    Help on ComboField (Listener Related)


    combofield object with listener were created in panel container . Listener have select event.


    These listener can i access from outside.ie..,in the panel itself ,i have to access the listener


    Because i want to know which record i select from store of combofield object


    any idea? please give me your suggestion.

    Thank you

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Vote Rating
    96
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    I am not sure if I understood correctly what you meant to ask. If you want to get the value of the combo box at any time, you may use:

    Code:
    Ext.getCmp('combo_id').getValue();
    If you want to do something on the select event itself, you can enter that code in the listener for select event of the combo box.

    Regards,
    Farish

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    75
    Vote Rating
    0
    saravanakmr is on a distinguished road

      0  

    Default


    Thank you man but this thing knew.


    i am not sure.i did't know access the listener


    i want to get whole record.


    but


    i found solution
    here code is


    var combo =Ext.getCmp('combo_id');


    var rec=combo.findRecordByDisplay(combo.displayTplData[0].Fname)l


    Fname is displayField of combo object


    and


    you can access


    rec.data.fieldname;(fieldname is store field )


    Finally we got exact record of what we select from combo list

Thread Participants: 1