Hi,
I would like to be able to set which fields are available for datafiltering on the RadDataFilter. As i understand, this can be done using annotations. However i find the use of annotations cumbersome. I use the RadDataFilter to filter data in a RadGridView. The RadGridView is boud to a collection in the Viewmodel. Now in order to specify which fields are available for datafiletring, i would have to annotate the public fields of my viewmodel. I think this is a violation of seperation of View and Viewmodel. Moreover, if i have diferent views using the same viewmodel with a RadDataFilter and i wish to have different fields available for filtering in each view, then this cannot be done.
In my honest opnion, which fields can be filtered, and what their caption is in the RadDataFilter should be specified in a collection of the RadDataFilter itself (much as the columns collection in the RadGridView).
If you think i going the wrong way here please let me know.
Kind regards,
Ronald Steenbergen
I would like to be able to set which fields are available for datafiltering on the RadDataFilter. As i understand, this can be done using annotations. However i find the use of annotations cumbersome. I use the RadDataFilter to filter data in a RadGridView. The RadGridView is boud to a collection in the Viewmodel. Now in order to specify which fields are available for datafiletring, i would have to annotate the public fields of my viewmodel. I think this is a violation of seperation of View and Viewmodel. Moreover, if i have diferent views using the same viewmodel with a RadDataFilter and i wish to have different fields available for filtering in each view, then this cannot be done.
In my honest opnion, which fields can be filtered, and what their caption is in the RadDataFilter should be specified in a collection of the RadDataFilter itself (much as the columns collection in the RadGridView).
If you think i going the wrong way here please let me know.
Kind regards,
Ronald Steenbergen