Hello,
In Telerik, I want to create a Grid that can differentiate between two objects and adjust the row accordingly. I understand that it's possible to customize row styles and templates, but the implementation I'm aiming for is a bit more complex, and I'm encountering some difficulties.
I have an object named "Program" with the following fields:
- String Name;
- String Id;
- ObservableCollection<Operation> Operations;
Additionally, I have another object called "Operation" with the following fields:
- string OpName;
- string PartId;
- int NumOfRepetitions;
- etc.
The DataGrid takes a collection of 'Program' as input.
Here's what I want to achieve:
When a program contains a single operation, I want to group the program's and operation's data and display everything in a single, non-expandable row.
When a program contains multiple operations, I want to display a parent row with the program’s data and an expandable child grid that shows one operation per row with the relative data.
Is it possible to have different set of columns per each row and have only some rows which are expandable?