How to keep grid expanded after postback?

2 posts, 0 answers
  1. Bill
    Bill avatar
    4 posts
    Member since:
    Mar 2009

    Posted 29 Apr 2009 Link to this post

    I have a hierarchical grid that uses NeedDataSource, and the entire page uses an AjaxManager. The second level of the grid has a GridButtonColumn and after it executes the SQL statement it needs to, it rebinds the grid. However, on rebind the row is no longer expanded. Is there a way to persist the expanded state?

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 29 Apr 2009 Link to this post

    Hello Bill,

    You can go through he following link which explains on how to retain the expanded/selected state for grid items in hierarchy upon a rebind command.
    Retain expanded/selected state in hierarchy on rebind

Back to Top