You need to sign in to do that
Don't have an account?

apex:actionSupport event="onchange" reload the page when we call method....
Dear Friends,
I have jquery fullcalendar plugin attched to my VF page, I have select list in the top which has locations, when user select location then it calls apex method and displays the event related to location. I have a problem here, when they change the location, it reloads the page and the calendar view goes back to week view to month view. Can you guys suggest me the way we can update the calendar events without loading the entire page..
Full Calendat ref link : http://fullcalendar.io/
Thanks,
I have jquery fullcalendar plugin attched to my VF page, I have select list in the top which has locations, when user select location then it calls apex method and displays the event related to location. I have a problem here, when they change the location, it reloads the page and the calendar view goes back to week view to month view. Can you guys suggest me the way we can update the calendar events without loading the entire page..
Full Calendat ref link : http://fullcalendar.io/
Thanks,
When it does is that instead of making a call to your controller method directly, you can access the feature from your javascript and refresh information on the calendar through javascript.
Hope this helps.
Please find the below example:
Visualforce:
Apex Class:
Also go through the below links:
https://developer.salesforce.com/forums/?id=906F000000095tYIAQ
https://developer.salesforce.com/forums/?id=906F000000097DIIAY
https://developer.salesforce.com/forums/?id=906F000000096N7IAI
https://developer.salesforce.com/forums/?id=906F000000094zCIAQ
https://developer.salesforce.com/forums/?id=906F000000094xAIAQ
http://salesforce.stackexchange.com/questions/55744/how-actionsupport-will-work-when-used-with-selectlist-is-it-work-on-the-copy-of
http://salesforce.stackexchange.com/questions/60222/actionsupport-not-updating-select-list
Please do let me know if it helps you.
Regards,
Mahesh
Thanks lot for your reponse on this. I did try both and didnt work. I am able to get the current calendat view using java script. how can we pâss that current view to Apex controller...
Once your page load you need to call the below mentioned script
This will help you bring back to month view.
Please let me know if this works for you:)
Thanks