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

Filter Expressions not working

5 Answers 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amrita Mandal
Top achievements
Rank 1
Amrita Mandal asked on 28 Jul 2010, 09:45 AM
Hi Team,

I am getting this error (No property or field 'FileParentID' exists in type 'DataRowView') as i set the Filter Expressions in my .aspx page like this FilterExpression="FileParentID=''".  My datasource is of the form Dataset. I have tried setting it in my code (.cs) also, but of no success. I want to filter the RadGrid when first time it loads.
Please suggest on this.


Thanks,
Amrita

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 28 Jul 2010, 10:48 AM
Hello Amrita,

I had same exception occured in my application. Then I set EnableLinqExpressions property to overcome the exception. Try setting EnableLinqExpressions property of MasterTableView as "false" .

Thanks,
Princy.
0
Amrita Mandal
Top achievements
Rank 1
answered on 29 Jul 2010, 01:10 PM
Hi Princy,

Thanks for reverting.
I have tried using EnableLinqExpressions = false already, in a way I am avoided with that exception but then results are not filtered by my FilterExpressions criteria. No exception is thrown but no filteration is applied though.

Thanks,
Amrita
0
Pavlina
Telerik team
answered on 02 Aug 2010, 03:14 PM
Hi Amrita,

For more information about how to achieve your goal, please refer to the help article below:
Operating with the FilterExpression of Telerik RadGrid manually

Give it a try and let me know how it goes.

Greetings,
Pavlina
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
0
Dustin
Top achievements
Rank 1
answered on 02 Oct 2014, 04:37 PM
@Princy, thanks for your post.  I wanted to point out that the EnableLinqExpressions property is on the RadGrid, and not its MasterTableView.  Your post was 4 years ago so it may have been valid at that time.  I'm just updating this information as I needed it and found this thread via Google.
0
Steve
Top achievements
Rank 1
answered on 25 Apr 2019, 08:31 PM

Thanks for pointing that out Dustin. That tip helped me out today.

 

Tags
Grid
Asked by
Amrita Mandal
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Amrita Mandal
Top achievements
Rank 1
Pavlina
Telerik team
Dustin
Top achievements
Rank 1
Steve
Top achievements
Rank 1
Share this question
or