Results 1 to 2 of 2

Thread: Ext Js 4.1 How to get selected records text from combo box?

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    48
    Answers
    1

    Default Ext Js 4.1 How to get selected records text from combo box?

    Hi,
    I have combo box which contains list of projects. I want "text" of selected record.
    I used this:
    alert(Ext.getCmp('comboMasterEast').getValue());
    but gives me its ID ,instead of that I need "text".
    What should I do for this ?

    Thanking You in advance
    Mandar Dadpe

  2. #2
    Sencha User
    Join Date
    Jun 2012
    Posts
    48
    Answers
    1

    Default

    I got the solution, by using following:

    var store = Ext.getCmp('comboMasterEast').getStore();
    var record = store.getById(comboMasterEast.getValue());
    alert(record.get('name'));

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •