Hello Kumaran,
Thank you for writing back.
For the time being
RadGridView does not provide this type of functionality. We have a feature request which is logged in our
feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link -
feedback item.
We are currently trying to gather feedback regarding this feature, so I will really appreciate if you can add your comment to the feedback item with information how would you expect this to work. Precisely I am interested in:
- how would you visually imagine the child to be rendered - should it just be
parent row
child rows
do you expect them connected with a line or something? Some sketch would be really appreciated.
- in case of multiple
child levels, how do you expect them printed:
parent row
row with caption from the first tab
child rows for this tab
row with caption from the second tab
child rows for this tab
is it something like this, or would you prefer something different?
Any other feedback would be greatly appreciated.
Meanwhile, I can suggest the approach which is implemented in the attached example project. You could iterate the
ChildRows collection of each
GridViewHierarchyRowInfo in your grid. Then create a new
RadGridView control and fill it with the rows in the
ChildRows collection. This grid control would only serve for the purpose of printing. At the the end it will print out only the child templates. You can modify the project so that it fits in your scenario, you could pass a
GridViewHierarchyRowInfo parameter and this way specify where you should start printing.
An alternative solution might also be an export to pdf and then printing your RadGridView as a pdf document, an example is discussed
here. I am sending you attached my sample project as well as a gif file showing the result on my side.
I am looking forward to your reply.
Regards,
Hristo Merdjanov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.