i dont see anything in the documentation but i am trying to convert over code that is rendered in an html table over to jquery grid but the one missing piece is that many of the columns have images in them or other specialized html that i would like to show in the grid
views:
1503answers:
3
+1
A:
This may not be the answer you're after, but DataTables will construct a grid from an HTML table. It features client side paging, sorting, filtering, client side editing and Ajax callback functions that will for server side paging.
With a table as your "source" you can have what ever you want in the columns.
David Robbins
2009-12-13 12:04:44
as you say, doesn't solve for jqgrid but this is an excellent plugin and does what i need
ooo
2009-12-13 13:50:38
i had to move accepted to the other answer as technically this was the correct answer to the question
ooo
2009-12-14 01:09:10
+4
A:
To show an image in a grid row, this post has a nice summary:
Return the HTML element as your grid column's data. Do not use ' or " for the src, it will not work properly. The field should be like this:
<img src=../images/my_image.jpg>
Justin Ethier
2009-12-13 23:57:40
+1, but your link to experts-exchange is unusable for me. Hopefully I'll try a custom formatter wrapping my image name in an IMG tag, and that'll work.
David V.
2010-03-17 11:47:16
A:
If you want to set Image in cell of jqgrid you have to use a hack, and if your datatype is 'client' it would work very fine.
- set the image in a variable.
- var crossImg = "set you html src of image";
- now set the colmodel like this.
- {name:'delImage',index:'delImage', align:'center', width:40, editable:false,formatter: 'integer',formatoptions:{defaultValue:crossImg}}
ENJOY!!!!!!!1
Deepak Kaithwas
2010-07-09 13:44:26