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

ResourceType Filter

3 Answers 97 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 02 Aug 2012, 12:02 AM
Does anyone know if we can filter dropdownlist in the resourcetype?  I was able to create dropdownlists with values but can't filter them.  I'm not sure if Telerik scheduler have that feature.
I need to be able to filter the selections from a dropdownlist in the radscheduler in the resource type collection.  Please help.

<

 

 

telerik:RadScheduler ID="RadScheduler1" runat="server"

 

 

 

DataDescriptionField="Description" DataEndField="End_Date" DataKeyField="ID"

 

 

 

DataSourceID="SqlDataSource1" DataStartField="Start_Date"

 

 

 

DataSubjectField="Subject" EnableDescriptionField="True">

 

 

 

<ResourceTypes>

 

 

 

<telerik:ResourceType DataSourceID="SqlDataProgramtype"

 

 

 

ForeignKeyField="Programs" KeyField="Programs" Name="Programtype"

 

 

 

TextField="Programs" />

 

 

 

<telerik:ResourceType DataSourceID="SqlDatastaff" ForeignKeyField="Users"

 

 

 

KeyField="Full_Name" Name="Staff" TextField="Full_Name" />

 

 

 

<telerik:ResourceType DataSourceID="SqlDataRooms" ForeignKeyField="ROOMS"

 

 

 

KeyField="ROOMNAME" Name="Rooms" TextField="ROOMNAME" />

 

 

 

</ResourceTypes>

 

<

 

 

WebServiceSettings>

 

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

 

</

 

 

WebServiceSettings>

 

 

 

</telerik:RadScheduler>

 

3 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 06 Aug 2012, 10:59 AM
Hello Kevin,

Take a look at the following help article explaining more on how to access and alter the elements in the advanced form of RadScheduler: http://www.telerik.com/help/aspnet-ajax/scheduler-customizing-advanced-form-formcreated.html.

Using what is shown in the above help article, you could do the following to set Filter functionality of the RadComboBox controls representing the appointments resources:
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
    if (e.Container.Mode == SchedulerFormMode.AdvancedEdit || e.Container.Mode == SchedulerFormMode.AdvancedInsert)
    {
        RadComboBox resourceRoomCombo = e.Container.FindControl("ResRoom") as RadComboBox;
        resourceRoomCombo.Filter = RadComboBoxFilter.StartsWith;
    }
}

I hope this will help.

Kind regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Kevin
Top achievements
Rank 1
answered on 09 Aug 2012, 04:59 PM
Thank you for responding to my question.  What I'm looking for is the ability to filter each dropdownlist created in the resource type collection within the Radscheduler. For instance, when I select the first dropdownlist, whatever I selected there will cause the second dropdownlist to populate the selection, and when I select the second dropdownlist, it will populate the third dropdownlist...  Please see my code.

<

 

 

telerik:RadScheduler ID="RadScheduler1" runat="server"

 

 

 

DataDescriptionField="Description" DataEndField="End_Date" DataKeyField="ID"

 

 

 

DataSourceID="SqlDataSource1" DataStartField="Start_Date"

 

 

 

DataSubjectField="Subject" EnableDescriptionField="True">

 

 

 

<ResourceTypes>

 

 

 

<telerik:ResourceType DataSourceID="SqlDataProgramtype"

 

 

 

ForeignKeyField="Programs" KeyField="Programs" Name="Programtype"

 

 

 

TextField="Programs" />

 

 

 

<telerik:ResourceType DataSourceID="SqlDatastaff" ForeignKeyField="Users"

 

 

 

KeyField="Full_Name" Name="Staff" TextField="Full_Name" />

 

 

 

<telerik:ResourceType DataSourceID="SqlDataRooms" ForeignKeyField="ROOMS"

 

 

 

KeyField="ROOMNAME" Name="Rooms" TextField="ROOMNAME" />

 

 

 

</ResourceTypes>

 

<

 

 

WebServiceSettings>

 

<

 

 

ODataSettings InitialContainerName=""></ODataSettings>

 

</

 

 

WebServiceSettings>

 

 

 

</telerik:RadScheduler>

 


0
Ivana
Telerik team
answered on 10 Aug 2012, 12:00 PM
Hi Kevin,

You need to customize the advanced form of RadScheduler in order to achieve the related RadComboBoxes scenario. The following article explains the steps to do so: http://www.telerik.com/support/kb/aspnet-ajax/scheduler/related-load-on-demand-radcomboboxes-in-the-advanced-form-of-radscheduler.aspx.

I hope this will help.

All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Kevin
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or