Traverse columns in a HierarchyChildTemplate

2 posts, 0 answers
  1. Anne Lyon
    Anne Lyon avatar
    87 posts
    Member since:
    Jan 2010

    Posted 08 Jul 2015 Link to this post



    I have a parent-child gridview where I need to be able to access all columns to change the column header programmatically.

    How do I access the childcolumns in the Gridview in my parentGrid's HierarchyChildTemplate so that I can loop through them?

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 10 Jul 2015 Link to this post


    You can subscribe for the AutoGeneratingColumn or DataLoaded events of the hierarchical GridView and implement the changes.

    Alternatively, you can directly manually define the columns for RadGridView within HierarchyChildTemplate. Read more on Defining Columns

    As a side note, I would suggest you using RowDetailsTemplate instead.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top