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

RadGrid with nested rows

1 Answer 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Duc
Top achievements
Rank 1
Duc asked on 12 Dec 2008, 10:01 PM
Hi,

I have an XML like this:

<Notes>
   <Note id="111" author="John Doe">
      <SubNote text="Sub note text 1"/>
   </Note>
   <Note id="222" author="Mary Jane">
      <SubNote text="Sub note text 2"/>
   </Note>
</Notes>

Basically I want to use a RadGrid to display:

1. The author in the first row with an expand/collapse icon next to it
2. The subnote directly underneath the note (ie. a separate row)
3. When the expand icon is clicked I want to display the actual contents of the note (server side call).

Is this possible? I toyed with NestedTemplates, DetailTables and even trying to dynamically create rows but didn't get very far.

Here is a screenshot of what I'm trying to achieve:

http://rs552l34.rapidshare.com/files/172818872/grid_example.PNG

Thanks for your help
Duc

1 Answer, 1 is accepted

Sort by
0
Prangadj
Top achievements
Rank 1
answered on 15 Dec 2008, 04:05 PM
Try the self-ref RadGrid hierarchy, Duc, that might help - here is the demo:

http://demos.telerik.com/aspnet-ajax/Grid/Examples/Hierarchy/SelfReferencing/DefaultCS.aspx

Other thing is to use RadTreeView with templates and implement some kind of node editing for it when clicking a button in its template node.

Prangadj
Tags
Grid
Asked by
Duc
Top achievements
Rank 1
Answers by
Prangadj
Top achievements
Rank 1
Share this question
or