Welcome Guest Search | Active Topics | Sign In | Register

How to display data from database when using goto function of the scheduler Options
Mahbub
Posted: Monday, October 18, 2010 3:51:50 PM
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?
eo_support
Posted: Monday, October 18, 2010 7:32:17 PM
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!
Mahbub
Posted: Tuesday, October 19, 2010 4:42:44 AM
Rank: Newbie
Groups: Member

Joined: 1/19/2010
Posts: 6
Thanks for the reply. Do you have any sample code anywhere?
eo_support
Posted: Tuesday, October 19, 2010 9:30:47 AM
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.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.