Current filter:
                                You should refresh the page.
                                0
                                  • Hi,


                                    i'm using the Scheduler on my page.


                                    On my Load_Page i'm setting default values of the scheduler.


                                    schRequests.Start = DateTime.Today.Date

                                    schRequests.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Month


                                    When the user dbl-click on an appointment, i'm loading a new page. When the user press the "Go back" button, to come back to the page that contains the scheduler, the control is not loading the information as it was before leaving the page.


                                    Example :


                                    1) The user load the page that contains the scheduler (Page A)

                                    2) On the scheduler the user go to the previous month (in the actual case June)

                                    3) The user dbl-click on an appointment of June (my other page open Page B)

                                    4) The user press the Go Back button on Page B to go back to Page A


                                    The scheduler now shows again the month of July, even if on step 3 it was the month of June that was shown.


                                    We have the same behavior when the user switch the calendar view to by example TimeLine...when the user come back after step 4 it's the Month view that he get.


                                    What can I do to be sure that the user will be in the same situation after step 4?

                                    The control should get its informations from the cache ?


                                    Thanks,

                                You must  log in  or  register  to leave comments

                                2 Solutions

                                Creation Date
                                Rating
                                Importance
                                Sort by
                                0

                                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.

                                You must  log in  or  register  to leave comments
                                0

                                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?

                                • John Fedak 08.07.2012

                                  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.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                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.