|
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
|
|
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!
|
|
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
|
|
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!
|
|
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
|
|
Rank: Member Groups: Member
Joined: 2/15/2010 Posts: 25
|
How can I call a javascript function on a month change? - thanks
|
|
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!
|
|