I have a rad grid with a parent (master) and child (detail table). Both tables have a row selector (checkbox). What I need to be able to do is if the Parent row is selected, I need to update via JavaScript the child rows for that parent as selected (and have the selector checkbox be disabled). And if they de-select the parent row this will un-check the child rows and enable the row selection (checkbox) in the child table.
Any help is appreciated.
Thanks!
-- Debbie
Here's a sample of the grid I have....
Any help is appreciated.
Thanks!
-- Debbie
Here's a sample of the grid I have....
| <telerik:RadGrid runat="server" ID="gridSample" Width="100%" AllowMultiRowSelection="true" > |
| <ClientSettings EnableRowHoverStyle="False"> |
| <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" /> |
| </ClientSettings> |
| <MasterTableView TableLayout="Fixed" DataKeyNames="AccountId" Name="Recipients" GridLines="Horizontal" Frame="Box" HierarchyLoadMode="Client" AutoGenerateColumns="false"> |
| <NoRecordsTemplate> |
| No Unsubmitted items for this customer. |
| </NoRecordsTemplate> |
| <DetailTables> |
| <telerik:GridTableView runat="server" ShowFooter="false" AllowSorting="false" Name="OrderItems" |
| BorderWidth="1" GridLines="Horizontal" AutoGenerateColumns="false" Width="100%" |
| DataKeyNames="Id"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="AccountId" MasterKeyField="AccountId" /> |
| </ParentTableRelation> |
| <ExpandCollapseColumn HeaderStyle-Width="20px" /> |
| <Columns> |
| <telerik:GridClientSelectColumn HeaderStyle-Width="30/> |
| <telerik:GridBoundColumn HeaderText="Product Name" DataField="ProductName" HeaderStyle-Width="300" /> |
| </Columns> |
| </telerik:GridTableView> |
| </DetailTables> |
| <Columns> |
| <telerik:GridClientSelectColumn /> |
| <telerik:GridTemplateColumn UniqueName="colAccountName" HeaderText="Name"> |
| <ItemTemplate> |
| <asp:HyperLink runat="server" id="linkAccount" /> |
| </ItemTemplate> |
| <HeaderStyle Width="150px" HorizontalAlign="Left" /> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
