jqGrid: Problem with select-element
If the select element doesn't have any options the name of t开发者_如何学JAVAhe select-list won't be rendered. As I fill the select automatically on one paritcular event I can not save the selected value because the select has no name. Is there a jqGrid-property to manage this?
I assume that you have problem with cell editing and you created column in colModel something similar:
{name:'strType', index:'strType', width:70, sortable:false, editable:true, edittype:'select', editoptions: { value: "" }}
Everything you would like to know about this feature is written in docs and there is:
The editoptions value must contain a set of value
So I would set name attribute by myself. If you do something in javascript that add option to select box, setting name attribute is simple.
$('#1_strType').attr('name', 'strType')
I haven't tested yet this solution, but I assume that this could work :)
精彩评论