I am using a RadFilter with a RadGrid. So far I have only got the RadFilter to work when my FilterExpression's FieldName is equal to a GridBoundColumn's DataField.
I have a column where the text displayed to the user is a concatenation of 3 fields from my DataSource. However, I want the user to be able to filter by each of these fields individually. Adding the individual fields as DataKeys did not work. Right now I have it working by having 3 GridBoundColumns with DataField set to each of the 3 individual fields, and Visible=false. Are there any performance implications to this approach? Even if there aren't any, I still think it's messy code. I would prefer to use the DataKey if possible.
I have another column where the value from my DataSource is an int. However, to get the value I display to the user, I cast this int to an enum and call ToString(). I am building my filter expressions programmatically. Right now it seems like I would have to build a RadFilterEqualToFilterExpression<int> for this column. However, all my other columns would use RadFilterEqualToFilterExpression<string>. My code would be much simpler if I could use RadFilterEqualToFilterExpression<string> for all my columns. Is it possible to filter by DataItem["uniqueName"].Text?
Thank you!
I have a column where the text displayed to the user is a concatenation of 3 fields from my DataSource. However, I want the user to be able to filter by each of these fields individually. Adding the individual fields as DataKeys did not work. Right now I have it working by having 3 GridBoundColumns with DataField set to each of the 3 individual fields, and Visible=false. Are there any performance implications to this approach? Even if there aren't any, I still think it's messy code. I would prefer to use the DataKey if possible.
I have another column where the value from my DataSource is an int. However, to get the value I display to the user, I cast this int to an enum and call ToString(). I am building my filter expressions programmatically. Right now it seems like I would have to build a RadFilterEqualToFilterExpression<int> for this column. However, all my other columns would use RadFilterEqualToFilterExpression<string>. My code would be much simpler if I could use RadFilterEqualToFilterExpression<string> for all my columns. Is it possible to filter by DataItem["uniqueName"].Text?
Thank you!