This is a migrated thread and some comments may be shown as answers.

Using WFC in AJAX component

4 Answers 56 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David Lopez
Top achievements
Rank 1
David Lopez asked on 22 Jul 2010, 05:19 PM
Hello,

I am new in using Telerik, and I have a basic question. I am using the AJAX component of telerik and I want to change the tooltip which appears when i pass the mouse over the appoinment.

I have seen this link but is for WPF
http://www.telerik.com/help/wpf/radscheduler-how-to-create-appointment-tooltip.html

First, I want to know what is the WPF, and if I can use it with in a normal asp NET project. 

Second, some ideas to change the tooltip?

Thanks you very much,

BR,

David.

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Jul 2010, 12:20 PM
Hi David,

I you use RadScheduler for ASP.NET AJAX, I suggest you review this demo:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx


Regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David Lopez
Top achievements
Rank 1
answered on 28 Jul 2010, 12:43 PM
Thanks Peter! 

The link is very interesting, but I need to access to the number of the appoinments in each cell, and dont know how. With that number I need to show it on the scheduler along with the appoinment, e.g next to the day:
     29 - 5appoinments
Appoinment1
Appoinment2
Appoinment3
Appoinment4
Appoinment5

Any suggestion?

BR, David.
0
Accepted
Peter
Telerik team
answered on 30 Jul 2010, 05:10 PM
Hi David,

Please, try the following code:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
   {
       if (RadScheduler1.SelectedView == SchedulerViewType.MonthView)
       {
           Literal numberOfAppointmentsLiteral = new Literal();
           int numberOfappointments = RadScheduler1.Appointments.GetAppointmentsInRange(e.TimeSlot.Start, e.TimeSlot.End).Count;
           numberOfAppointmentsLiteral.Text = "number of appointments: " + numberOfappointments.ToString();
           e.TimeSlot.Control.Controls.Add(numberOfAppointmentsLiteral);
       }       
   }


All the best,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David Lopez
Top achievements
Rank 1
answered on 02 Aug 2010, 08:25 AM
Cool Peter, that solved my problem.

Thanks a lot for your help.

BR,

David.
Tags
Scheduler
Asked by
David Lopez
Top achievements
Rank 1
Answers by
Peter
Telerik team
David Lopez
Top achievements
Rank 1
Share this question
or