Persisting expanded groups when exporting to Excel (HTML)

Thread is closed for posting
1 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 02 Aug 2011 Link to this post


    RadControls version Q3 2009 and later
    .NET version 3.5 and later
    Visual Studio version 2008 and later
    programming language C#/VB.NET
    browser support

    all browsers supported by RadControls

    Sometimes it may be useful to persist the expanded groups when exporting RadGrid data. The attached example illustrates how to implement this functionality with few lines of code. This project relies on the ViewState to hold the information about the expanded groups.
    The PersistExpandedGroups method will be invoked before export and the RestoreExpandedGroups will be called on DataBound event.
Back to Top