Hi there,
I added RadScheduler Telerik Scenario with "Web Service with Custom Provider" option, and then added "Year View".
Everything works fine except an error message when I mouse over on the appointment cell. I debugged and noticed that embed tooltip on year view does not initialize custom schedulerInfo. Is there a way to override client event and initialize schedulerInfo ???
Here are codes:
<
script
type
=
"text/javascript"
>
var teacherID = "all";
function OnClientSelectedIndexChanged(sender, args) {
teacherID = args.get_item().get_value();
var scheduler = $find('<%=RadScheduler1.ClientID %>');
scheduler.rebind();
}
function OnClientAppointmentsPopulating(sender, eventArgs) {
eventArgs.get_schedulerInfo().TeacherID = teacherID;
}
</
script
>
<
telerik:RadScheduler
ID
=
"RadScheduler1"
runat
=
"server"
OnClientAppointmentsPopulating
=
"OnClientAppointmentsPopulating"
AppointmentStyleMode
=
"Default"
SelectedView
=
"MonthView"
SelectedDate
=
"2011-01-21"
Width
=
"100%"
OverflowBehavior
=
"Expand"
>
<
DayView
UserSelectable
=
"true"
/>
<
MonthView
UserSelectable
=
"true"
/>
<
YearView
UserSelectable
=
"true"
/>
<
WeekView
UserSelectable
=
"false"
/>
<
TimelineView
UserSelectable
=
"false"
/>
<
WebServiceSettings
Path
=
"SchedulerWebService.asmx"
ResourcePopulationMode
=
"ServerSide"
/>
<
ResourceStyles
>
<
telerik:ResourceStyleMapping
Type
=
"Teacher"
Key
=
"1"
BackColor
=
"Orange"
/>
<
telerik:ResourceStyleMapping
Type
=
"Teacher"
Key
=
"2"
BackColor
=
"Aqua"
/>
</
ResourceStyles
>
</
telerik:RadScheduler
>
Public Overrides Function GetAppointments(ByVal shedulerInfo As ISchedulerInfo) As IEnumerable(Of Appointment)
Dim myInfo = TryCast(shedulerInfo, MySchedulerInfo)
Dim teacherID As String = myInfo.TeacherID
'--> teacherID gets nothing when mouse over appointment in year view.
Dim appointments As New List(Of Appointment)()
Thanks.
Jae