I'm not able to filter the appointments in scheduler based on the selection in combo.
I have done all that i found in telerik demos but does not work.
Could you please tell me whats wrong in my code
Anything more needs to be done apart from this?
Here is the code:
<
asp:DropDownList runat="server" ID="UserDropDown" AutoPostBack="true" DataSourceID="SqlDataSource1" DataTextField="TaskType" DataValueField="ID" OnDataBound="UserDropDown_DataBound">
</asp:DropDownList>
<telerik:radscheduler runat="server" id="RadScheduler1" width="100%" daystarttime="08:00:00" dayendtime="08:01:00" readonly="true" allowdelete="True" allowedit="True" allowinsert="True" dataendfield="End" datakeyfield="ID" onappointmentinsert="RadScheduler1_AppointmentInsert"
datarecurrencefield="RecurrenceRule" datarecurrenceparentkeyfield="RecurrenceParentId"
datastartfield="Start" datasubjectfield="Subject" firstdayofweek="Monday" lastdayofweek="Sunday"
overflowbehavior="Expand" monthvisibleappointmentsperday="6" skin="Web20" showfooter="False"
showhourscolumn="False" GroupBy="TaskType">
<ResourceTypes>
<telerik:ResourceType KeyField="ID" Name="TaskType" TextField="TaskType"
ForeignKeyField="ID" DataSourceID="SqlDataSource1"/>
</ResourceTypes>
<appointmenttemplate>
<asp:hyperlink id="id" runat="server" text='<%# Eval("Subject")%>'>
</asp:hyperlink>
</appointmenttemplate>
</telerik:radscheduler>
And i tried in Serverside also:
Private
Sub InitializeResources()
Dim resType As New ResourceType("TaskType")
resType.DataSourceID = "SqlDataSource1"
resType.ForeignKeyField = "ID"
resType.KeyField = "ID"
resType.TextField = "TaskType"
RadScheduler1.ResourceTypes.Add(resType)
RadScheduler1.Resources.Add(New Resource("TaskType", 1, "Expert"))RadScheduler1.Resources.Add(New Resource("TaskType", 9001, "Meeting"))RadScheduler1.Resources.Add(New Resource("TaskType", 90, "Staff"))RadScheduler1.Resources.Add(New Resource("TaskType", 92, "National Expert"))
End Sub
The types that i'm filling with the combo are 5 types. Appointment should be one of the 5 types.