Identify which row was expanded

3 posts, 0 answers
  1. Laurens
    Laurens avatar
    9 posts
    Member since:
    Dec 2014

    Posted 09 Dec 2014 Link to this post

    I want to persist expanded rows of the pivotgrid during the session so iIf the user returns to the page, his previously expanded rows are expanded again.
    In order to do this I must know which rows are expanded so I must have a way to identify them.
    I'm trying to identify the expanding rows in the itemcommand event (Commandname "ExpandCollapse") in order to store them in a list in the session and re-expand the rows based on this list.

    Alas, I cannot find an identifier for the rows.
    I have two questions
    1. Is the itemcommand the proper event for this
    2. Is there a row identifier available which I can use?

    Any help would be very much appreciated.

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2386 posts

    Posted 12 Dec 2014 Link to this post

    Hello Laurens,

    Saving and loading the expanded/collapsed state of the columns and rows will be a highly complex task and I would like to recommend that you use the RadPersistenceManager on your page. You could easily save the state in the session and load it when needed. An online demo for such implementation could be found at the following link:
    Hope this helps.

    Konstantin Dikov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Laurens
    Laurens avatar
    9 posts
    Member since:
    Dec 2014

    Posted 16 Dec 2014 in reply to Konstantin Dikov Link to this post

    Thanks Konstantin,

    Your suggestion was helpful in solving my problem.


Back to Top