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

RadGridView grid in grid hierarchy

2 Answers 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 29 Aug 2011, 10:37 PM
Hello,

We are evaluating whether to use Telerik RadGridView (among other Telerik controls) for purposes of supporting our application.

Basically, what we've got is classes of Abstract Class A, i.e. Class B : A, Class C : A, etc, which all have properties of Abstract Class X, Class Y : X, Class Z : X, and so forth. Of course, a bit more complex than that, but this illustrates what we're after.

So, we would want to support loading up a RadGridView top level with Class A classes and requisite editing capabilities, potentially grouping by the class, i.e. Class B or Class C, and listing those types of objects. Then we would want to possibly expand each of these instances and list the properties, say Class B.Y, Class B.Z, and so forth, in a sub-grid to the grid.

We wouldn't necessarily be working with a physical database, but we would plausibly be working through System.Linq enumerated collections more than likely. And then load or save to or from Xml resources. That's just an aside, nothing to do with the grid per se.

Okay, so how capable is the control to do something like this?

Regards,

Michael

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 30 Aug 2011, 02:03 AM
And actually, there are a couple of things about our approach I necessarily want to clarify to see whether this control will necessarily facilitate what we want. First is, the property in Class X should be editable, say X.Value. So if we have an A.X.Value, that should be editable.

There may be instances of X in A classes that will be marked "read-only" through some sort of C# Attribute decoration, such as [ReadOnly(true)] public X MyX { get; }. In this illustration, you see why we need to expose X.Value, which itself is public Single Value { get; set; } (can itself be get or set).

This is only somewhat apart from the scope of things insofar as I read the RadGridView control can support property pathing, such as "X.Value", which may be right along the lines of what we need.

Okay, still need to know if RadGridView is the control for us. So far so good. Installed the trial version and gave it a spin on a couple of simple parent-child hierarchical views; literally, Person/Parent/Child, and it works like a charm so far! :-) Which beggars these follow on concerns thinking in terms of employing the controls in our application.
0
Julian Benkov
Telerik team
answered on 01 Sep 2011, 02:19 PM
Hi Michael,

We believe that our RadGridView control can support your scenarios and you can use different types of implemented hierarchy modes to render complex graphs of related objects. More information for RadGridView hierarchy mode you can find in our online documentation.

Do not hesitate to contact us if you have further questions or issues.

All the best,
Julian Benkov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or