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

LinqDataSource+RadGrid+server side caching issue

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oleg
Top achievements
Rank 1
Oleg asked on 05 Aug 2010, 11:03 PM
I used example from http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx to cache a data. I added just 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

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 11 Aug 2010, 10:58 AM
Hello Oleg,

It seems to be working on my end properly. Pease check the attached application.

Greetings,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Oleg
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or