I want to set an html object to the cell in jqgrid..
i will get the cell object with this:
var cell = jQuery('#tree').jqGrid('getCell', rowID, 'name');
after changing few properties of cell i want to place it back..Is there any way to do this
I am doing this in the following way but its not setting it properly..
var myCell = "<td aria-describedby='tree_name' title='"+name+"' style='18px' role='gridcell'>"+
"<div class='tree-wrap tree-wrap-ltr' style='width: 0px'>"+
"<div class='ui-icon ui-icon-radio-off tree-leaf treeclick' style='left: 0px'></div>"+
"</div>"+
"<span class='cell-wrapperleaf'>"+name+"</span>"+
"</td>"
jQuery("#tree").setCell (rowID,3,myCell,{});
The value of the cell must be
innerHTMLof the cell and notouterHTML. So you should remove from themyCellthe<td ...and the</td>parts.