Home › Forums › Guriddo jqGrid JS › Help › How to add a image to grid from filesystem
Hi,
How I can show images in the Grid, reading from my filesystem. I using XML Data. I have tried .
Can you help me?
you can use the setRowdata method in the following way:
Add this to jqgrid initialization:
gridComplete:function() {
cellHtml = 'any html you want';
$(“#tableid”).jqGrid('setRowData',rowid,{columnname:cellHtml});
}
goodluck.
There is also a much easier way, you can use custom formatter, it is well documented in the wiki.
It works very fine! Thank you.
For Developers who search after this:
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS