Hi,
You can persist a currently selected view type and the start date in a Session variable by handling the ASPxScheduler.ActiveViewChanged Event and ASPxScheduler.VisibleIntervalChanged Event . Then, restore these values in the Page_Load event handler:
[C#]// In the Page_Load event if (!IsPostback){ schRequests.Start = Session["start"]; schRequests.ActiveViewType = Session["ViewType"] }
UPDATE:
It appears that this question is not specific to our controls. The Chrome web browser caches a webpage and reloads it from cache when you press the "back" button. No request is posted to the server. To fix this issue, disable browser caching (e.g., seeDisabling Browser Caching In C# and ASP.NET).
Thanks,
Alessandro.
Alessandro,
thanks for your answer.
Do you have a sample that I can take a look ?
Your idea sounds great but it seems that this not work... my viewtype and the startdate are coming back to my default value even if I use the session variable to always keep in memory the current view and the current date...
thanks in advance,
Martin
-
I have not managed to replicate this issue locally. Attached is a test sample. Would you please modify it to illustrate the issue?
-
I am seeing the same thing- but only in Chrome. IE seems to work as expected.
Can you try it w/ Chrome? -
Thank you for your clarification. I have modified you original answer accordingly.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+