Get RowDetails elements

2 posts, 0 answers
  1. Freddy
    Freddy avatar
    2 posts
    Member since:
    Mar 2014

    Posted 29 Jul 2015 Link to this post

    I'm using a GridView wich RowDetailsTemplate is another GridView, i need to iterate inner GridView rows... i'm iterating parent GridView rows this way

    IList<GridViewRow> rows = radGridView.ChildrenOfType<GridViewRow>();

    but how can i get the GridView inside the row details template 
  2. Stefan X1
    Stefan X1 avatar
    486 posts

    Posted 30 Jul 2015 Link to this post

    Hi Freddy,

    Generally, working directly with the visual elements of RadGridView is not recommended, due to the virtualized nature of the control. I suggest you working on data-level instead and iterate over the nested collection used as an ItemsSource of the RowDetailsTemplate. This can be achieved through the Items collection of RadGridView.

    Would such approach fit your requirements?

    Best Regards,
    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 banner
Back to Top