Categories | Question details Back To List | ||
Display link in a grid cell We use the following code in XML to display a link in a grid cell which when clicked calls a JS function. <cell><![CDATA[ <a href='#' onClick='callFunc1();'>Func1</a> ]]></cell>" where callFunc() is a JS method. It works fine but how do I display a link in a grid cell which calls a JS function if I am setting the grid data in JS not from XML? Is there a way to set it using 'myGrid.cells(rowId, 3).setValue();' where we can set the setValue parameter? Answer posted by Support on Apr 24, 2008 10:35 setValue accepts any value, including HTML myGrid.cells(rowId, 3).setValue(" <a href='#' onClick='callFunc1();'>Func1</a> "); or you can use it directly while creating new rows myGrid.addRow(id,["A"," <a href='#' onClick='callFunc1();'>Func1</a> ","C"] |