inserting the image in to cell

hi

how can i insert the image icon in to the every cell and then after clicking the image icon i should perfom som action how can i do it

plz help me in these regard







There are few ways to implement such use-case

a) Use “link” excell and formated data
                Text^javascript:Action^_self
                Delete Alert?^javascript:confirmDelete(“some”)^_self
such code will create an A tag, with javascript action attached to it

b) Use “ro” excell and HTML value
                <![CDATA[Text]]>
                <![CDATA[Delete Alert?]]>

c) Use the setOnRowSelectHandler method
    grid.setOnRowSelectHandler(my_func,true);
    function my_func( rowId, cellIndex){
        if (cellIndex==some_index)
            confirmDelete(“some”)
    }

d) create a custom excell