Hierarchy Grid Last Row

2 posts, 0 answers
  1. Roland
    Roland avatar
    11 posts
    Member since:
    Mar 2007

    Posted 21 Oct 2013 Link to this post

    Hi there.

    How do I iterate through a Hierarchial Table and find the last row? Ive done this at the top level without DetailTables - OnPreRender I can go grab the Last GridItem and find the appropriate control and set the visibility. Thanks.

    So something like -
    if (rgQuestions.Items.Count > 0)
    {
         GridItem gi = rgQuestions.Items[rgQuestions.Items.Count - 1];
         ImageButton btnDown = gi.FindControl("btnDown") as ImageButton;
         btnDown.Visible = false;
    }
  2. Roland
    Roland avatar
    11 posts
    Member since:
    Mar 2007

    Posted 21 Oct 2013 Link to this post

    never mind. I got it. Based off of samples in documentation -

    http://www.telerik.com/help/aspnet-ajax/grid-traversing-detail-tables-items-in-grid.html

    Wire up the PreRender event of the grid, and traverse the columns. You can iterate through the GridTableView's Items and find the appropriate control necessary.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top