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

Object data in RadGridView and broken filtering.

1 Answer 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 28 May 2010, 11:55 PM
Hello,

I write very flexible application and I have a few problem. I use RadGridView and all columns are added in code behind. I have created custom filter controls. Data in RGV are downloaded from WCF WebService. In this case I have a List<object>. And this is a problem. If data are object type, i don't have filter button on gridviewhederrow. I change column datatype. For example: column.DataType = typeof(string). Now filter button is visible. My control can be show, but they doesn't work.
 I have a exception, because comparing object and other type is failed. What should I do?

I need: create column in code behind, with custom filter. Data source is flexible and it can't be List<string>. It must be List<object>.

Kind Regards
Marcin


1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 31 May 2010, 07:09 AM
Hello Marcin,

Is there a good reason that you are working with object type instead of a concrete type If you provide more information about your scenario we might be able to come up with a better solution.


Regards,
Milan
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
GridView
Asked by
Marcin
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or