Hi there,
with Telerik it is rather easy to bind a custom class to a radGrid. But for now I do spend hours of research on how to visualize the hierarchy of my class!
Let's assume, we're having this class structure:
If I bind a list of <MasterRecord> to the datasource, all my entries show up in the grid (two columns: Title; Description ), but I can't manage to show up the SlaveRecords or even the SingleRecord!
I've tried a lot of stuff so far, but nothing gets it to work as expected. If I'm in the context of a NestedViewTemplate I'm able to Eval() on the current child, but it doesn't get connected with another radGrid.
Hope, someone could help me here, as all i want to achieve is a basic property grid / property editor.
Regards
with Telerik it is rather easy to bind a custom class to a radGrid. But for now I do spend hours of research on how to visualize the hierarchy of my class!
Let's assume, we're having this class structure:
class MasterRecord{ public string Title { get; set; } public string Description { get; set; } public List<SlaveRecord> SlaveRecords { get; set; } public SlaveRecord SingleRecord { get; set; }}class SlaveRecord { public string Title { get; set; } public string Description { get; set; }}If I bind a list of <MasterRecord> to the datasource, all my entries show up in the grid (two columns: Title; Description ), but I can't manage to show up the SlaveRecords or even the SingleRecord!
I've tried a lot of stuff so far, but nothing gets it to work as expected. If I'm in the context of a NestedViewTemplate I'm able to Eval() on the current child, but it doesn't get connected with another radGrid.
Hope, someone could help me here, as all i want to achieve is a basic property grid / property editor.
Regards