allowing different panels to be open according to session information

2 posts, 0 answers
  1. Mac
    Mac avatar
    7 posts
    Member since:
    Jul 2008

    Posted 18 Jan 2010 Link to this post

    hi to give a brief description of how this would work...
    panel bar will start with all panels open,
    then as per user selection the panels will be open or closed as they browse the rest of te site...
    ie 5 different panels available, but only panels 12 and 4 are open.
    i think that this would be best worked through session information, but welcome ideas...

  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 19 Jan 2010 Link to this post

    I think the best way to do this if you are looking to storing something in Session you could just have an Array which represents your panels (0 = first panel, 1 = second etc.) which simply has a 0 or a 1 for expanded or not expanded. Then upon opening the page you check this array to see which panels need to be expanded or not. This might not be the most efficient way but it's better than attempting to store the entire RadPanelbar in session :). You can expand an item using the following syntax in the code-behind:

    RadPanelBar1.Items[0].Expanded = !RadPanelBar1.Items[0].Expanded; 

Back to Top