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

child radgrid

3 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Parodist
Top achievements
Rank 1
Parodist asked on 09 Feb 2009, 12:44 PM

Hi,

How to display telerik:gridtemplate column inside telerik:gridbound column?
or how to display the child radgrid within a parent radgrid with the gridbound column when
master table view of Table layout ="Fixed" to define its column width ?


Thanking you in advance.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Feb 2009, 01:06 PM
Hi,

It is not possible to place one column inside another column of the grid. You can either try out the normal hierarchial structure, or, use a NestedViewTemplate, where you can place any controls according to your requirement. If you want the grid to be present in the main grid itself, then you can use a GridTemplateColumn wherein you can place any control in its ItemTemplate.

Thanks
Princy.
0
Parodist
Top achievements
Rank 1
answered on 12 Feb 2009, 08:58 AM
Thanks for the reply Princy, I have used the item template column inside the grid template  to display my data however it doesn't allow to have gridbound coulmns withhin the item template to specify width parameters like the grid bound column when the table layout is set to fixed.Can't use either hierarchial structure, or  a NestedViewTemplate for my requirements.


Thanks
0
Princy
Top achievements
Rank 2
answered on 12 Feb 2009, 09:51 AM
Hello,

I suppose you want to specify the Width for the GridTemplateColumn. If that is the case, then you can use HeaderStyle/ ItemStyle tags as shown in  the follwowing code:
aspx:
  <telerik:GridTemplateColumn UniqueName="TemplateColumn"
        <HeaderStyle Width="100px" /> 
        <ItemStyle Width="100px" /> 
        <ItemTemplate> 
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
        </ItemTemplate> 
        <EditItemTemplate> 
            <asp:TextBox ID="TextBox1" Text="TextBox" runat="server"></asp:TextBox> 
        </EditItemTemplate> 
 </telerik:GridTemplateColumn> 

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