This is a migrated thread and some comments may be shown as answers.

Grid to property

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
usr9999
Top achievements
Rank 1
usr9999 asked on 08 Oct 2010, 03:05 AM
The following is my grid code. I could expland multiple details at once. I only wanted one detail to be opened at a time. For example, when i expand one, it should collaps other details. I tried for the property but was unable to find. Any help is appreciated.

<telerik:RadGrid ID="grdWorkFlow" runat="server" Width="100%" ShowStatusBar="True" AutoGenerateColumns="False"
                                            PageSize="7" AllowSorting="True" AllowPaging="True" GridLines="None">
                                            <PagerStyle Mode="NumericPages"></PagerStyle>
                                            <ClientSettings EnableRowHoverStyle="true">
                                                <Selecting AllowRowSelect="true" />
                                            </ClientSettings>
                                            <MasterTableView Width="100%" DataKeyNames="Record_Status_ID" AllowMultiColumnSorting="True"
                                                AllowFilteringByColumn="False" ExpandCollapseColumn-Display="True">
                                                <DetailTables>
                                                    <telerik:GridTableView DataKeyNames="ID" Name="Workflow_list" Width="100%" AllowPaging="True" PageSize="5" AlternatingItemStyle-BackColor="AliceBlue">
                                                        <Columns>
                                                          
                                                            <telerik:GridBoundColumn SortExpression="ID" HeaderText="EFDR#"
                                                                HeaderButtonType="TextButton" DataField="ID" Visible="true">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton"
                                                                DataField="Name" UniqueName="Name">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn SortExpression="Date" HeaderText="Date"
                                                                HeaderButtonType="TextButton" DataField="Date" UniqueName="Date">
                                                            </telerik:GridBoundColumn>
                                                           <telerik:GridTemplateColumn UniqueName="View">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="lnkView" runat="server" CausesValidation="false" CommandArgument='<%# Eval("ID") %>'
                                                                        CommandName="View" Text="View"></asp:LinkButton>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="10px" />
                                                            </telerik:GridTemplateColumn>
                                                           
                                                           
                                                           
                                                        </Columns>
                                                    </telerik:GridTableView>
                                                </DetailTables>
                                                <ExpandCollapseColumn Visible="True">
                                                </ExpandCollapseColumn>
                                                <Columns>
                                                    <telerik:GridBoundColumn SortExpression="Record_Status_ID" HeaderText="Record_Status_ID"
                                                        HeaderButtonType="TextButton" DataField="Record_Status_ID" Visible="False">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn SortExpression="Description" HeaderText="Work Flow Item"
                                                        HeaderButtonType="TextButton" DataField="Description">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn SortExpression="Num" HeaderText="Number" HeaderButtonType="TextButton"
                                                        DataField="Num">
                                                    </telerik:GridBoundColumn>
                                                </Columns>
                                            </MasterTableView>
                                        </telerik:RadGrid>

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Oct 2010, 07:44 AM
Hello,

Check out the following documentation to achieve the desired functionality.
Single expand in hierarchical grid


Thanks,
Princy.
Tags
Grid
Asked by
usr9999
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or