RadGrid with nested rows

2 posts, 0 answers
  1. Duc
    Duc avatar
    7 posts
    Member since:
    Dec 2008

    Posted 12 Dec 2008 Link to this post

    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
  2. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 15 Dec 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top