This is a migrated thread and some comments may be shown as answers.

Identify which row was expanded

2 Answers 56 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Laurens
Top achievements
Rank 1
Laurens asked on 09 Dec 2014, 02:14 PM
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 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 12 Dec 2014, 10:05 AM
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.


Regards,
Konstantin Dikov
Telerik
 

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.

 
0
Laurens
Top achievements
Rank 1
answered on 16 Dec 2014, 01:34 PM
Thanks Konstantin,

Your suggestion was helpful in solving my problem.

Regards,
Laurens.

Tags
PivotGrid
Asked by
Laurens
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Laurens
Top achievements
Rank 1
Share this question
or