Categories | Question details Back To List | ||
Javascript reaction on click How I can create an image which will fire some javascript action inside the grid, for example delete icon ? Answer posted on May 05, 2007 10:58 There are multiple ways to provide javascript actions from cell a) Use "link" excell and formated data <cell>Text^javascript:Action^_self</cell> <cell>Delete Alert?^javascript:confirmDelete("some")^_self</cell> such code will create an A tag, with javascript action attached to it b) Use "ro" excell and HTML value <cell><![CDATA[<a href='#' onclick='Action'>Text</a>]]></cell> <cell><![CDATA[<a href='#' onclick='confirmDelete("some")'>Delete Alert?</a>]]></cell> 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 Answer posted by Alexandra (Support) on Dec 05, 2014 01:26 The information connected with mobile ui framework and gnatt charts also can help you, so please check it too. |