jqgrid get values from combobox inside cell -


i'm using select type inside column , when i'm generating xml grid's data , can't value of select type cell.

this code:

{name:'code',index:'code', width:80, sorttype:"int" , editable:true,edittype:"select",                                          editoptions:                                          {                                            value:"1:11 ;2:22" } 

and xml generating with:

var datafromgrid = grid.jqgrid ('getrowdata');   var xml = xmljsonclass.json2xml ({row: datafromgrid}, '\t'); 

i inside xml "11" intead of "1".

how can option value?

thank's in advance.

if use datatype:"xmlstring" changed "local" datatype after filling of grid. in case of datatype:"local" grid has internal data parameter represent grid data , not visualization of current page of data receive with

var datafromgrid = grid.jqgrid ('getrowdata'); 

so recommend use

var datafromgrid = grid.jqgrid ('getgridparam', 'data'); 

to data grid.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -