Nesting a a radgrid with one datasource

2 posts, 0 answers
  1. Neal
    Neal avatar
    3 posts
    Member since:
    May 2014

    Posted 21 May 2015 Link to this post

    Hello Everyone, 

    I Am new to posting to these forums, but have been using Telerik for a few months now at my job. I've ran into a problem that I need some help with. So I have a rad grid bound to a datasource that is returned in code. A problem is coming up where one submissionID can have different costcenters (hope variables wont be an issue), what I want to do is nest each return record inside the initially returned record. So for submission ID #1 that has 2 costcenters, I want to see the first record that comes back under that submission ID then any other record that has that submission ID be nested inside of that row in the Grid. Any help would be appreciated and Please let me know if any additional information would be useful. 


    Thanks for your time

  2. Viktor Tachev
    Viktor Tachev avatar
    1444 posts

    Posted 26 May 2015 Link to this post

    Hello Neal,

    Such arrangement of the data can be achieved by using self-referencing hierarchy. You would need to have a field in the data source that will be used to implement the hierarchy (e.g. main costcenter and minor costcenters related to it).

    If this is the scenario, you could use RadGrid. Check out the following article that describes the approach. However, note that this functionality is not supported by RadGrid out of the box.

    When you have self-referencing hierarchy it is recommended to use RadTreeList. It supports the functionality out of the box and is better optimized for it.

    Viktor Tachev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top