Persist RadPanelBar Controls from runtime

2 posts, 0 answers
  1. Jon Procter
    Jon Procter avatar
    5 posts
    Member since:
    May 2010

    Posted 01 Jun 2010 Link to this post

    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.
  2. Jon Procter
    Jon Procter avatar
    5 posts
    Member since:
    May 2010

    Posted 02 Jun 2010 Link to this post

    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!
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top