Hi,
In RAD Grid Q3 2007 version, how to get all selected rows in the radgrid in javascript?
I tried the following code, but it returns only the count of the current DetailTableView only; where the page is a web user control.
| function OnRowSelected() |
| { |
| var noOfRowsSelected; |
| noOfRowsSelected = this.SelectedRows.length |
| } |
Here is the declaration of the grid control:
<MasterTableView
<MasterTableView
<MasterTableView
| <rad:RadGrid ID="grdViewRegistries" runat="server" AutoGenerateColumns="False" GridLines="Vertical" |
| Height="220px" AllowPaging="false" AllowSorting="false" EnableAJAX="true" Skin="BlueCare" |
| OnItemDataBound="grdViewRegistries_ItemDataBound" HorizontalAlign="Center" AllowMultiRowSelection="true" |
| AllowMultiRowEdit="true" EnableOutsideScripts="true" EnableAJAXLoadingTemplate="true" |
| OnDetailTableDataBind="grdViewRegistries_DetailTableDataBind" OnItemCreated="grdViewRegistries_ItemCreated"> |
| <ClientSettings ApplyStylesOnClient="true" AllowExpandCollapse="true" ClientEvents-OnRowCreated="onRowCreated"> |
| <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" /> |
| <ClientEvents OnRowMouseOver="ChangeColor" OnRowMouseOut="RemoveColor" OnRowDeselected="RowSelectColor" |
| OnRowSelected="RowSelectColor" /> |
| <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="220px" /> |
| </ClientSettings> <MasterTableView> </MasterTableView> |
| </rad:RadGrid> |
Please let me know.
Thanks