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

Default Filter on Initial Load

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 05 Sep 2011, 12:58 PM
Hi,

I have RadGrids bound to both entitydatasources and SQLdatasources, I need the grids to initially show no records when the page is first displayed but then allow the user to use filters to display the required records.

What is the best way to achieve this? I have tried following the example found in the link below but I get errors for both SQL and Entity Datasources.

http://www.telerik.com/help/aspnet-ajax/grid-applying-default-filter-on-initial-load.html

Thank you in advance for any help you can give.

Regards

2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 05 Sep 2011, 01:30 PM
Hello,

Please set below property.

<telerik:RadGrid EnableLinqExpressions="False"


Let me know if any concern.

Thanks,
Jayesh Goyani
0
Albert
Top achievements
Rank 1
answered on 08 Sep 2011, 11:15 AM
Hi Jayesh,

Thank you for your response, I have entered "EnableLinqExpressions = false" when using SQLDatasource and "EnableLinqExpressions = true" when using EntityDatasource controls and then followed the example and it works!

Thank you for your help, it is much appreciated.

Regards
Tags
Grid
Asked by
Albert
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Albert
Top achievements
Rank 1
Share this question
or