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

Filter Multi-Valued Resource Demo

1 Answer 49 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
heavywoody
Top achievements
Rank 1
heavywoody asked on 07 Feb 2011, 10:38 PM
I implimented the DBSchedulerProviderBase per your sample and it works fine for multi-resource items.  What I am trying to figure out now is how to filter it, since the SQL Logic is hardcoded into the GetAppointments method.  I have two comboboxes above the schedule that when I change those items, it should filter the appointments shown.  But I am unsure of how to do that when the select statement is hardcoded into the GetAppointments Method

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Feb 2011, 05:09 PM
Hello Christian,

Please, refer to this forum post:
http://www.telerik.com/community/forums/aspnet-ajax/scheduler/replacing-schedulerinfo-in-resourcespopulating-not-working.aspx#1511333

In general, you can use the approach from the Sending additional information to the provider help topic. For server-side binding, use the AppointmentsPopulating server event to pass the filter criteria to the provider:

protected void RadScheduler1_AppointmentsPopulating(object sender, AppointmentsPopulatingEventArgs e)
{
   e.SchedulerInfo = new MySchedulerInfo(e.SchedulerInfo, User.Identity.Name);
}  


Regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
heavywoody
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or