|
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?
|
|
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
|
|
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; } }
|
|
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
|
|
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?
|
|
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
|
|
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
|
|