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
935
How to get Checked Rows in Webdatagrid in ClientSide/ServerSide Code
posted

 

I added UnboundCheckBoxField on my webdatagrid.

<ig:UnboundCheckBoxField HeaderChecked="False" Key="CheckBox" Width="50">

 <Header Text="" />

 </ig:UnboundCheckBoxField>

Now i want to get all rows that i checked in my grid.

I tried this:

BLOCKED SCRIPT

 

   var countcheckedrows =  $find("<%=fgWebDataGrid.ClientID%>").get_behaviors().get_selection().get_selectedRows().get_length();

codebehind:

var countchecked = fgWebDataGrid.Behaviors.Selection.SelectedRows.Count;    

but it just returns only 1or 0.

Thanks in Regards