Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Calendar control behaving different on location.Reload() call
posted

In our application we are using Infragistics Webcalender control to maintain user’s appointments.

Application is having refresh button in each and every page which uses location.Reload() function to

refresh the page.

In the calendar control with monthview,

1) navigate to previous month or next month and

2) click on refresh button(which uses location.Reload())

3) popup dialog window Retry/Cancel.

4) click on cancel button in the dialog,monthview is defaulted to current Month irrespective

of the navigation done.

Can we control this behavior?

Ideally it should go to next or previous month depending onthe navigation.

This behavior is not happening on Browser’s refresh. Only happening in location.reload().

Parents
No Data
Reply
  • 12004
    posted

    Hello Abhijeet_Rajwade,

    For the WebMonthView you can obtain the current month by using the following:

    var webMonthView = ig_getWebControlById("WebMonthView1"); 
    var currentMonth = webMonthView.getCurrentMonth();

    This will allow you to get the current month of the WebMonthView control. Also you can store the current month in a Hidden server side control. This will allow you to persist between postbacks.

    Theoretically you could create a dialog to proceed on whether you would like to stay on the current month or go back to the previous month that is stored in the Hidden input control.

    Let me know if you have any questions with this matter. Thank you.

Children