|
Rank: Newbie Groups: Member
Joined: 1/19/2010 Posts: 6
|
I am using the scheduler in my project where i show the apointment in month view. I have added the go to option to let the user go to a specific month/year(..\Samples\VB\Demos\Calendar\Features\Title and Footer Template\Demo.ascx). But how can i load the data from database for the selected month/year? I have vb.net code in calender load and render evernt to load the data from database. Is there any way to call the render event when i use goto function in javascript so it shows the data in the scheduler?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There is no way to trigger your render event if you use goTo function to scroll the Calendar. You will have to trigger a post back to go back to the server to update the whole Calendar (you can put the Calendar inside a CallbackPanel/UpdatePanel to avoid other area in the page being updated).
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/19/2010 Posts: 6
|
Thanks for the reply. Do you have any sample code anywhere?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You would just trigger a post back from your JavaScript code. You can use our ScriptEvent control to do that. If you use ScriptEvent, you would call eo_TriggerServerEvent to trigger the post back, then handle the ScriptEvent's Command event on the server side to do whatever you'd like. The whole flow has nothing to do with the Calendar control. See more details about ScriptEvent control: http://doc.essentialobjects.com/library/1/eo.web.scriptevent.aspxThanks!
|
|