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
710
Please send me a link or info with info how to get the value of a selected cell in webhierarchialdatagrid clientside.
posted

There has to be an easy way to do this. I just can't find it.

Please send me a link or info on how to get the value of a selected cell in webhierarchialdatagrid clientside.

my grid id is  ig:WebHierarchicalDataGrid ID="igWhdgCats"  ...

I have defined  
<Behaviors>
<ig:Selection CellSelectType="Multiple" Enabled="true">
<SelectionClientEvents CellSelectionChanged="On_CellClick" />
</ig:Selection>
</Behaviors>

I tried the following in On_CellClick, but doesnt work  

<script language="JavaScript">
function On_CellClick() { 
var grid =  $find(igWhdgCats).get_gridView();
var SelectedRows = grid.get_behaviors().get_selection().get_selectedRows();
ig(SelectedRows.get_length() > 0)
{
var row = SelectedRows[0];
var num = row.get_cellByColumnKey("PKey").get_value();
}
}
</script>

Do I use arguments in  On_CellClick() for example On_CellClick(sender,e) ? On_CellClick(grid,args)?

Then what?

 

 

Parents Reply Children
No Data