-
Sencha User
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
-
Sencha User
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
-
Forum Rules