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

Resource filtering

1 Answer 76 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 2
John asked on 16 Apr 2008, 11:32 AM
Dear Telerik Team,

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.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Apr 2008, 02:59 PM
Hello Bidan,

Have you followed the Defining Resources online example? We can send you an isolated, standalone application of just this example if you think this could help you. Let us know what you think.


Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
John
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or