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

Nested Grid

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Al asked on 16 Sep 2011, 09:29 PM
Hello,

Hope someone can help me out, i'm struggling with some thing that i want to do.

I have 


public class AttributeValue
{
        public string Name {get;set;}
        public string Value {get;set;}
}
  
public class Entry
{
        public string EntryName {get;set;}
        public List<AttributeValue> Attributes {get;set;}
}

All i want to do is binding a List<Entry> to a RadGrid and then show the Attributes as a columns. i'm thinking about having the Attributes radgrid inside the Entry radgrid.

<telerik:RadGrid ID="rgEntry" runat="server">
    <MasterTableView>
        <Columns>
            <telerik:GridTemplateColumn>
                <ItemTemplate>
                    <telerik:RadGrid ShowHeader="false" ShowFooter="false" runat="server" ID="rgAttributes">
                    </telerik:RadGrid>
                </ItemTemplate>
                <HeaderTemplate>
                     
                </HeaderTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Do you think i'm in the right way ? Or should i used Hierarchical Rad Grid or NestedViewTemplate ?

Thanks in advance





1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 17 Sep 2011, 05:40 AM
Hello,

There is a nothing wrong in this method.
we can used any of methods as per our requirement.

for more information of how to bind second RadGrid please click here.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Al
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or