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

Navigation and server reads

1 Answer 57 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 10 Jan 2017, 09:17 AM

Hello,

I'm using scheduler in a very simple mode - a read-only month view. I'd like to read from the server every time the user navigates. I have found some sample code on this forum from 2013, however the latest library code is a bit different.

Anyway, I have an ALMOST working solution. I have serverFiltering = true, and my Controller method is set up to work with DataSource filtering:

public virtual JsonResult HistoryData(Guid id, [DataSourceRequest] DataSourceRequest request)

However, the scheduler JS library fails because it expects the data to some back in a simple list format. The controller is obviously returning a "filterable" format like so:

Data->

    Total:1

     Filters: ...

     Errors: ...

     Data: [...]

 

So my question is, if we're using serverFilterable flag to force the reads, shouldn't I be able to use [DataSourceRequest] in my controller?
Could you please provide an up-to-date MVC project sample for this scenario?

Many thanks.

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 12 Jan 2017, 08:53 AM
Hello Simon,

I would recommend you to follow the implementation, demonstrated in our Scheduler server filtering Code library. You will notice, that in the implementation the â€‹ServerOperation is enabled, instead of ServerFiltering.

I hope that the above helps you. If you have any further questions, please do not hesitate to contact us.

Regards,
Veselin Tsvetanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
Chris
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or