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

Nesting a a radgrid with one datasource

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Neal
Top achievements
Rank 1
Neal asked on 21 May 2015, 09:19 PM

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

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 26 May 2015, 07:51 AM
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.



Regards,
Viktor Tachev
Telerik
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
Tags
General Discussions
Asked by
Neal
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or