How to filter data before filling radscheduler table adapter?

1 Answer 86 Views
DataFilter Scheduler and Reminder
Mike
Top achievements
Rank 1
Iron
Iron
Mike asked on 24 Jan 2023, 03:45 AM

hello guys,

 

I am using Radscheduler to develop employee Timesheet program, I use codeless data binding (link below)

Codeless data binding - WinForms Scheduler Control - Telerik UI for WinForms

 

I am face with a data filter problem. Each employee is from different location (Employee Table have their own ID(primary key) ,location ID, StartTime, EndTime), so for each location when they use this app, I want they only can view their own timesheet.

So into my

private void Form_Load(object sender, EventArgs e)
        {
            this.tS_TimeSheetTableAdapter.Fill(this.XXX_XXDataSet.TS_TimeSheet);

       }

 

How should I filter data by location ID before it fill the tableadapter?

Plz help me out.

Thanks,

Mike

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 25 Jan 2023, 03:42 PM

Hello Mike,

Thank you for contacting us.

You can use the Filter property of the SchedulerBindingDataSource.EventProvider or SchedulerBindingDataSource.ResourceProvider, depending on what you need to filter. You can struct the query string in a way to work for your case. You can read more about the providers in the mentioned article in your post.

Can you check this and let me know if this works for you?

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DataFilter Scheduler and Reminder
Asked by
Mike
Top achievements
Rank 1
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or