jqGrid how to get selected text from a dropdown cell -


here colmodel cell displays dropdown list. trying selected text in dropdown

{name:'pdinstancetype', edittype:'select', formatter:'select',  editable:true, editoptions:{value:"1:test1;2:test2"}} 

the below code gives me selected value(1 or 2) instead of text (test1 or test2)

jquery("#tableid").jqgrid('getcell', rowid, 'pdinstancetype'); 

is there way selected text? appreciate inputs!

for else looking @ similar problem, here how able selected text of drop down list in jqgrid cell.

var dropdown = jquery('#' + rowid + 'pdinstancetype')[0]; var selectedoption = dropdown.options[dropdown.selectedindex]; var selectedtext = selectedoption.text;  

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -