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

Persist RadPanelBar Controls from runtime

1 Answer 58 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jon Procter
Top achievements
Rank 1
Jon Procter asked on 01 Jun 2010, 06:21 PM
I am using a RadPanelBar that has panes with Radgrids attached to them (each pane represents a day, and the grid holds items that represent the activities for that day). The purpose is so that a user can flick through a month day by day, viewing the activities for that day.

The RadPanelBar is on my form at design time and has the panes with their grids dynamically added at runtime depending upon whatever month the user is viewing. My problem however is that I ALSO have a dockLayout on the form, and when anything happens, it automatically does a round trip to the server. The RadPanelBar retains it's populated state and has whichever day it was previously open at on display, which is fine, but the grids are no longer attached, presumably as they were created at runtime. Are there any suggestions as to how I can modify my approach so that the grids are retained? I don't really want to do the repopulate the grids each time, as there are 42 of them (a calendar month's worth). I realise this isn't a straightforward question, but any assistance would be appreciated. I would like to retain the state of the RadPanelBar and it's contents when the dockLayout does it's repeated postbacks.

1 Answer, 1 is accepted

Sort by
0
Jon Procter
Top achievements
Rank 1
answered on 02 Jun 2010, 11:03 AM
Ok, no problem. I did it a different way. It now calls the grid adding method every time the page posts back(I stopped the docking doing its postback for the moment, so there are less of them). The reason this was a problem before was that the RadPanelBar used to lose it's way and close itself when the grid population and adding happened. That has been fixed by setting the "PersistStateInCookie" on the RadPanelBar to True, so it actually works, and remembers where it was before the postback. I'm giving it some load testing now, as I'm fearing that 42 "hidden" grids on a RadPanelBar may be a performance nightmare!
Tags
PanelBar
Asked by
Jon Procter
Top achievements
Rank 1
Answers by
Jon Procter
Top achievements
Rank 1
Share this question
or