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

[Solved] FilterExpression not working as expected

3 Answers 237 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sarang
Top achievements
Rank 1
Sarang asked on 16 Jan 2009, 10:50 AM

Hi,

I am using Hierarchy mode of the radgrid with setting property HierarchyLoadMode

 

="Client".

Following code is used for filter expression.

 

 

If Assembly.GetAssembly(GetType(ScriptManager)).FullName.IndexOf("3.5") <> -1 Then

 

    radGridMenu.MasterTableView.FilterExpression =

"it[""ParentId""] = Convert.DBNull"

 

 

Else

 

    radGridMenu.MasterTableView.FilterExpression =

"ParentId IS NULL"

 

 

 

End If

But it throws an error: No applicable indexer exists in type 'Menu'.

I am using framework 3.5 and migrating from telerik old version to latest version.
Please let me know you have any other solution for this.

Thanks,
Sarang

 

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 16 Jan 2009, 12:28 PM
Hi Sarang,

Based on this information, it is hard to determine what is causing this behavior.
If the issue persists, you can open a formal support ticket, and send us a small project, demonstrating your logic, as well as the unwanted exception, for additional local testing.

All the best,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Krishnan LN
Top achievements
Rank 1
answered on 18 Feb 2010, 01:29 PM
Hi,
I have the same issue.
I have the parentID as integer in the custom class. I use it filter expression and i get the error "No applicable indexer exists in type "

Can you help me out?
0
Yavor
Telerik team
answered on 22 Feb 2010, 09:29 AM
Hi Krishnan,

As mentioned previously, in order to properly address the exception which you reported, it will be best if you open a formal support ticket, and send us a small working sample, demonstrating your precise setup, along with the exception. We will review it locally, and get back to you with more information on the matter.

Best wishes,
Yavor
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
Sarang
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Krishnan LN
Top achievements
Rank 1
Share this question
or