Find Parent/Grandparent row in RowSourceNeeded event

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    5 posts
    Member since:
    Sep 2010

    Posted 01 Mar 2017 Link to this post

    We are using a hierarchical RadGridView in unbound mode.

    When the RowSourceNeeded event is fired, to fill up the child grid, we need to know which row is the parent of the child grid (and its grandparent and so on).

    How can we find this out from inside RowSourceEvent?
  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4086 posts

    Posted 02 Mar 2017 Link to this post

    Hello Jeff,

    Thank you for writing.  

    In the RowSourceNeeded event, you have access to the parent row by the GridViewRowSourceNeededEventArgs.ParentRow property. The GridViewRowInfo.Parent allows accessing the desired parent up to the top hierarchy level. Additional information for the load on demand approach is available here: http://docs.telerik.com/devtools/winforms/gridview/hierarchical-grid/load-on-demand-hierarchy

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top