Welcome Guest Search | Active Topics | Sign In | Register

Calendar/Scheduler Options
Eric
Posted: Wednesday, March 17, 2010 4:42:52 PM
Rank: Member
Groups: Member

Joined: 2/15/2010
Posts: 25
Hi, I want to create a large Scheduler where I can put dynamic drop down controls on the dates. Let's say I have someone who needs to schedule "something" on a specific date. Then I need the user to have the ability to see that drop-down if they select a date and select an item from that list for other processing purposes..

Is this possible for me to add this control on a specific date? I see you all have a text box that comes up but I want to replace that.

Thanks
eo_support
Posted: Wednesday, March 17, 2010 6:01:22 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can do anything that is possible with HTML/JavaScript. The way Calendar works is the Calendar control provides you a Grid with date cells. You can put in whatever you would like into each day cell through DayRender event. If you do not handle DayRender event, the Calendar simply puts the date number in each cell.

Thanks!
Eric
Posted: Thursday, March 18, 2010 10:03:16 AM
Rank: Member
Groups: Member

Joined: 2/15/2010
Posts: 25
Ok, I see from the demo code how that's working... I've got the selectionchanged event working.. I guess my question now is I want to kick off a javascript function when a date is selected. I put in a "onClick="javascript:dayCheck(this)" in the <eo:Calendar> tag but it only kicks off on a square without a date.. how would you recommend I do this and pass through the calander control or at least the date selected to this javascript function?

Thanks
eo_support
Posted: Thursday, March 18, 2010 10:32:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You would generate whatever HTML/JavaScript in each cell when your DataRender handler is called, inside that handler you have the date for that cell. You can then generate your JavaScript code based on that. For example, passing the day number to your dayCheck function so that the generated JavaScript will be something like onClick="dayCheck(this, 20)". The key is you are free to generate whatever HTML/JavaScript that makes sense to you based on the date you have when DayRender event is called.

Thanks!
Eric
Posted: Thursday, March 18, 2010 10:33:06 AM
Rank: Member
Groups: Member

Joined: 2/15/2010
Posts: 25
gotcha.. that's the exact route I'm currently trying.. trying to cover the entire cell by trying to call an onClick event through a div tag - thanks
Eric
Posted: Friday, March 19, 2010 3:59:53 PM
Rank: Member
Groups: Member

Joined: 2/15/2010
Posts: 25
How can I call a javascript function on a month change? - thanks
eo_support
Posted: Friday, March 19, 2010 4:03:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to set the controls' ClientSideOnScroll to the name of your JavaScript function.

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.