How to add a image to dojo datagrid cell -
i can add image dojo datagrid cell adding class cell,but when double click cell images of row clicked lost,so there way add image not being lost.
yes there is,
simply add an
<div class="imagediv"></div>
as value of cell , in css file, that:
.imagediv{height:20px;width:20px;background-image:url(/path/to/image.png);}
if need display image based on cell values, should dojo's layout-formatter functions:
http://dojotoolkit.org/reference-guide/1.8/dojox/grid/datagrid.html
(search formatter)
Comments
Post a Comment