Greetings
I am to implement ways for improving the performance of my RadScheduler.I cannot bind the control in the client given that one of the requirements of my application is to create a datatable or a dataset dynamically based on the return values.
My RadScheduler binds perfectly, however, performance wise, the scheduler is taking to long to generate the view upon view change. I had an opportunity to read the optimized query example, and I like it a lot. I was thinking to implement something alike by doing a LINQ to Datatable and then binding the RadScheduler control. In this instance, I believe the Datasource_Selecting Event wont be the best choice.
Is it there an available event - say - RadScheduler_BeforeRangeChange or ViewRangeChange - so I could go ahead and bind the control per view instance?
Say in that event
IEnumerable<DataRow> query =
from rows
in
MyDataTable.AsEnumerable()
where rows.Field<DateTime>(
"START"
) > RadScheduler1.VisibleRangeStart AND
rows.Field<DateTime>(
"END"
) < RadScheduler1.VisibleRangeEnd
select rows;
DataTable boundTable = query.CopyToDataTable<DataRow>();
RadScheduler1.DataSource = boundTable;
If there not an availabel event ,is there a work around? Also, after the RadScheduler taking too long is returning me the view, but right after error - System.webforms.pagerequestManagerServerError Exception - ViewState Mac Failed
How could I be about fixing these performance issues?
Please let me know,
Thanks