Hello,
This afternoon, I have been working with Visual Studio 2010 and Telerik controls.
My windows 8.1 computer suddenly became rather unstable - this normally happens when there are Windows Updates to be applied.
So I rebooted the machine and allowed the updates to be installed.
Since doing this, Telerik control databinds have become INCREDIBLY slow. For example, the following code:
DateTime startDate = new DateTime(viewDateStart.Year, viewDateStart.Month, 1);
DateTime endDate = startDate.AddMonths(1);
while ((int)startDate.DayOfWeek != 1) startDate = startDate.AddDays(-1); // 0 = sunday
while ((int)endDate.DayOfWeek != 0) endDate = endDate.AddDays(1); // 0 = sunday
while (startDate <= endDate) {
dayList.Add(startDate);
startDate = startDate.AddDays(7);
}
rptCalendar.DataSource = dayList;
rptCalendar.DataBind();
At the point of the data bind, the dayList item only contains 5 records. It takes a good 5 to 10 seconds to step over the DataBind() statement.
Similarly, RadGrid is also taking inordinate amounts of time to DataBind(). The data in this instance comes from a Linq call, but this too is virtually instant.
It seems that a Windows update has somehow crippled Telerik control data binding.
Has anyone heard of this happening ?
This afternoon, I have been working with Visual Studio 2010 and Telerik controls.
My windows 8.1 computer suddenly became rather unstable - this normally happens when there are Windows Updates to be applied.
So I rebooted the machine and allowed the updates to be installed.
Since doing this, Telerik control databinds have become INCREDIBLY slow. For example, the following code:
DateTime startDate = new DateTime(viewDateStart.Year, viewDateStart.Month, 1);
DateTime endDate = startDate.AddMonths(1);
while ((int)startDate.DayOfWeek != 1) startDate = startDate.AddDays(-1); // 0 = sunday
while ((int)endDate.DayOfWeek != 0) endDate = endDate.AddDays(1); // 0 = sunday
while (startDate <= endDate) {
dayList.Add(startDate);
startDate = startDate.AddDays(7);
}
rptCalendar.DataSource = dayList;
rptCalendar.DataBind();
At the point of the data bind, the dayList item only contains 5 records. It takes a good 5 to 10 seconds to step over the DataBind() statement.
Similarly, RadGrid is also taking inordinate amounts of time to DataBind(). The data in this instance comes from a Linq call, but this too is virtually instant.
It seems that a Windows update has somehow crippled Telerik control data binding.
Has anyone heard of this happening ?