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

Subgrid view

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Murugesan Manokaran
Top achievements
Rank 1
Murugesan Manokaran asked on 29 Jun 2010, 05:12 PM
I am using Subgrid (NestedTemplate) inside a Radgrid. As per the current design, ">" image is displaying for expand/collapse when we want see the subgrid content.

Is it possible to replace that ">" image with "View" text instead as a Linkbutton.

thanks

regards
Muru

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Jul 2010, 08:18 AM
Hello Murugesan,

One solution is hide the ExpandColumn of RadGrid and add one GridTemplateColumn with LinkButton in ItemTemplate. Set the CommadName of LinkButton as 'ExpandCollapse' which toggles the expanded state of the child items.

You can refer the following Forum post for hiding ExpandCollapse column.
How to hide the ExpandColumn

Add the following mark up in MastertableView->Columns .
ASPX:
 <telerik:GridTemplateColumn> 
    <ItemTemplate> 
        <asp:LinkButton ID="LinkButton1" CommandName="ExpandCollapse" Text="View" runat="server"></asp:LinkButton> 
    </ItemTemplate> 
 </telerik:GridTemplateColumn> 

Hope this helps you,
Princy.




Tags
General Discussions
Asked by
Murugesan Manokaran
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or