Webgrid7 OnCellClick GetSelectedObject() error

3 replies. Last post: January 17, 2010 11:00 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello,

 

When I use client events

 

<
ClientSideEvents OnCellClick="OnCellClick" />

 

I try to get the value of a checkbox. Here is my webgrid

<ISWebGrid:WebGridColumn Caption="<%$ Resources:Resources, grdSelected %>"
                              Name="SelectSeizure" EditType="Checkbox" ColumnType="CheckBox" >
                          </ISWebGrid:WebGridColumn>

and my function :

function OnCellClick(gridId, tblName, rowIndex, cellIndex )
{
    //alert(id);
    var grid = ISGetObject(gridId);
    alert(grid);
    
    var row = grid.GetSelectedObject().GetRowObject();    
    var cells = row.GetCells();    
    alert(cells.GetNamedItem("SelectSeizure").Text);
}

but the GetSelectedObject does an error :

GetSelecteObject is null or not an object.

 

Any Idea?

Thank you

 

Nicolas

All times are GMT -5. The time now is 5:43 PM.
Previous Next