Welcome Guest Search | Active Topics | Sign In | Register

Calendar - Scheduler Options
MikeL
Posted: Thursday, March 6, 2008 10:05:26 AM
Rank: Member
Groups: Member

Joined: 2/27/2008
Posts: 17
I am using you calendar example "Scheduler"

Is there an easy way to make it so when you click on a day a window popups displing details?
eo_support
Posted: Thursday, March 6, 2008 10:22:15 AM
Rank: Administration
Groups: Administration

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

The sample does demonstrates all the basics and provide a working example for you as how to display a popup when a day is clicked. As to what to fill in that popup, it would be totally up to you!

Thanks
MikeL
Posted: Thursday, March 6, 2008 11:41:59 AM
Rank: Member
Groups: Member

Joined: 2/27/2008
Posts: 17
Can you explain what exactly this event is doing?

private void CallbackPanel1_Execute(object sender, EO.Web.CallbackEventArgs e)
{
string callbackParam = CallbackPanel1.LastTrigger.Parameter;

//Validate the parameter. The first 10 characters
//is the date. The rest is the note.
if ((callbackParam != null) && (callbackParam.Length > 10))
{
string date = callbackParam.Substring(0, 10);
string note = callbackParam.Substring(10);

Notes[EO.Web.Calendar.StringToDate(date)] = note;
}
}
eo_support
Posted: Thursday, March 6, 2008 11:48:32 AM
Rank: Administration
Groups: Administration

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

That code works together with the client side eo_Callback JavaScript function. When the client side calls eo_Callback JavaScript function, it passes the date and note as the its second parameter. This function then extracts those values and stores them in Notes. You may want to check the documentation of the eo_Callback for more details about how to use that function. The function itself has nothing to do with the Scheduler. It's a part of the CallbackPanel.

Thanks
MikeL
Posted: Thursday, March 6, 2008 12:28:46 PM
Rank: Member
Groups: Member

Joined: 2/27/2008
Posts: 17
Ok,

What about adding a control to a day? Instead of adding a plain html table to the day cell can I add a control like a placeholder or label?
eo_support
Posted: Thursday, March 6, 2008 12:45:09 PM
Rank: Administration
Groups: Administration

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

No. From the scheduler's point of view, you can use DayRender method to render only HTML. However since every server control is eventually rendered to HTML, you are free to use whatever server control to generate your desired HTML --- but that's a totally different issue. Since the issue is about general ASP.NET programming, if you have any question on that, you would need to consult other resources for details.

Thanks
MikeL
Posted: Thursday, March 6, 2008 12:49:09 PM
Rank: Member
Groups: Member

Joined: 2/27/2008
Posts: 17
no problem. I was just curious if each Day in the calendar was an object and I could just add to it.

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.