This is a migrated thread and some comments may be shown as answers.
Telerik FilterDescriptor: Value type is double instead of integers.
2 Answers 77 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 10 Aug 2010, 05:29 PM
We are using the Telerik grid in combination with nHibernate. We translate the Telerik filters automatically to nHibernate Criteria which works nicely. 

When there are Integer columns in the database nHibernate demands integer values in the Criteria while the Telerik filter provides a double value causing an exception. We could work around this problem by casting dynamically using the FilterDescriptor.MemberType. The MemberType is however always null in our application. Is there a way to enable this type information? 

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Aug 2010, 07:53 AM
Hi Henrik van den Berge,

Unfortunately the MemberType is not maintained. Serializing it in the query string would have wasted precious bytes. The only way to enable this would be to use reflection to determine the type of the property.

Regards,
Atanas Korchev
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
Dominic
Top achievements
Rank 1
answered on 16 Feb 2012, 01:51 PM
Hello,

is there any plan to support MemberType?

Regards
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Dominic
Top achievements
Rank 1
Share this question
or