Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
731
Please correct CellClickHandler...
posted

i am using following code to get cell # 13 value if anywhere in cell is clicked i am using following code but it not seems to work please take a look and tell me which mistake i am doing..

code behind

UltraWebGrid1.DisplayLayout.ClientSideEvents.CellClickHandler = "CellClickHandler";

javascript function 

function CellClickHandler(gridId, cellId) {

var cell = igtbl_getCellById(cellId);

var row = cell.Row;

row.getCell(13).getValue()   -> error is not an object.....

 }

 

  • 28464
    posted

    Hello,

    The code seems correct, the only thing I can think of is the index. Cell collections are zero based, so the 13th cell would be row.getCell(12).

    You can also use the special word in javascript debugger; to debug the javascript in FireBug for FireFox or IE.