9 Answers, 1 is accepted
Master page markup:
Master page Page_Load, call this method for each pane:
Let me know if you can clean this up a bit for me ^.^
I am not quite sure how you implemented your cookies. In case you send me your code, I will review it and probably would find the cause for the duplication.
I have attached a simple test page that demonstrates one implementation of your scenario. I hope this would help you.
the Telerik team
I love the cookie approach, and you're correct that the above example works great for preserving the docked state,
but we are attempting to store the width as well. So, while there isn't a problem obtaining the width on the client side, there IS a problem setting the width on the client side. I am unaware of a client side method that sets the RadSlidingPane's width on the client side, so I'm attempting to set the width on the server side, and therein lies the problem.
Expanding upon the original code to store the docking info and the width:
When we attempt to retrieve the cookie on page_load of the master page, we often get the correct cookie value. However, while going from page to page, we soon see a duplicate cookie, and so we end up retrieving an invalid value.
You can use the set_width client-side method of the RadSlidingPane to set the width of the sliding pane on the client. For example:
Make sure that you first set the new width for the sliding pane and then dock it.
All the best,
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
I have taken this approach as well, and am finding the same problem that Adam had... How did / can you get around this?
When you say "gave up on checking cookies", what are you saying exactly?
Right now, I'm doing this:
are you saying that you are not getting the cookie (line above the alert)?
Thanks in advance Adam!
For now, this approach isn't going to work, but I have changed the idea that Telerik gave and it seems to be working. Basically, I just set an expiration on the cookie for 30 minutes. Even though I have waited longer than 30 minutes between postbacks, the solution seems to still be working
Thanks for your help Adam... If we find that this isn't going to work, I will take your advice and use Max's approach.