I used example from http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx to cache a data. I added just
Oleg
OrderBy
=
"Name"
to LinqDataSort. When ASP.NET form is opened first time everything is good but after paging the sort order is not right. As I understand the issue Linq does OrderBy just when querying data from the database. How to resolve this issue? I have to keep the column Name sorted all time.<
asp:LinqDataSource
ID
=
"LinqIdDataSource"
runat
=
"server"
AutoPage
=
"false"
TableName
=
"V_ID_Dailies"
Select
=
"new (ID, Name)"
ContextTypeName
=
"IdLookupDataContext"
OrderBy
=
"Name"
OnContextCreating
=
"LinqIdDataSource_ContextCreating"
OnSelected
=
"LinqIdDataSource_Selected"
OnSelecting
=
"LinqIdDataSource_Selecting"
>
</
asp:LinqDataSource
>
Oleg