This works, provided you have the grid row in edit mode. I made use of it something like this.
//Logic to get the selected text in dropdown
$('#yourGridId).jqGrid('editRow', currentRow, true);
//Depending on the number of dropdowns, you could use index to get the innerText value
var selectedValue= $("#vendorsParticipatingGrid option:selected")[0].innerText;
//Restore row to non edit mode after selecting the selected drop down value
$('#yourGridId).restoreRow(currentRow);
Ashutosh Shu...
Member
395 Points
116 Posts
how to get dropdown selected value in jqgrid
May 14, 2012 03:00 PM|LINK
hi
all plz let me know how can i get jqgrid dropdown selected value
Thanks
Ashutosh shukla
Ashutosh Shu...
Member
395 Points
116 Posts
Re: how to get dropdown selected value in jqgrid
May 14, 2012 03:16 PM|LINK
Hi
Thanks for Help I solve my problem
by this code
$("#EqOmtgv option:selected").val()
Thanks
Ashutosh
mridulrajk
Member
2 Points
1 Post
Re: how to get dropdown selected value in jqgrid
Jan 24, 2013 03:33 PM|LINK
This works, provided you have the grid row in edit mode. I made use of it something like this.
//Logic to get the selected text in dropdown $('#yourGridId).jqGrid('editRow', currentRow, true); //Depending on the number of dropdowns, you could use index to get the innerText value var selectedValue= $("#vendorsParticipatingGrid option:selected")[0].innerText; //Restore row to non edit mode after selecting the selected drop down value $('#yourGridId).restoreRow(currentRow);Hope it helsp someone else some sweat ;-)
Cheers