Hello, does anyone knows a way to let the RadDataFilter to show the "DisplayName" of a property (as taken from a resource file) instead of the property name in unbound mode so that I do not have to write my own parser to convert the expression between "display" and "property" ?
See attached image
9 Answers, 1 is accepted
Such attributes are not supported. However, you can manually change the text in the editor and in the node. Here is an example for this:
I hope this will be useful. Let me know if you have additional questions.
I'm trying to apply the proposed solution, but I notice that the substitution is not complete.
I click "New" > "Expression", and I see the correct "Custom Text".
When I click on "Custom Text" to select another field, I see "Custom Text" as value proposed by the ComboBox, but the selected value becomes "Name".
How can we avoid to show "Name" also there?
It would be better to use a dictionary to store the names and then just change the data source of the editor. Here is an example for this:
Let me know if I can assist you further.
Thanks Dimitar, that works!
Just one thing: I've seen that when I click on a fieldname on the DataFilter control and the combobox is shown, if I don't select an item but I click somewhere else, the application crashes.
Here the exception:
Please make sure that the field names in your data source are the same as the keys used in the dictionary.
If this does not help please open a new support ticket and attach your project there. This will allow us to properly investigate this case and determine what is causing this.
Should you have any other questions do not hesitate to ask.
Creating the Dictionary I was including also a property having the attribute [Browsable(false)].
Which was ignored by the DataFilter... from where the "unknown" field.
I am glad that this works fine now. Do not hesitate to contact us if you have other questions.
This case is handled by the code in the NodeFormatting event handler. I have tested this again on my side and it works as expected (see attached image). I would recommend submitting a ticket where you can attach your project. This will allow us to properly investigate this.
Let me know if you have additional questions.