Hi,
I've noticed (though it's not documented) that if the fields array of the Filter widget is not defined, it will use the fields defined in the dataSource, and the 'label', 'previewFormat', 'editorTemplate' and 'operators' properties can be added to the dataSource fields object to be applied to the Filter widget.
This is extremely helpful and should probably be described in the documentation.
I'd like to suggest (if it's not already another undocumented feature) that dataSource fields can be hidden from the Filter widget, perhaps with a simple boolean such as 'filter: false'
Thanks
Hello,
Indeed your observation are true. The filter widget will try to get the fileds from the datasource if not passed directly as an option. We will surely add this to the documentation.
Have in mind that moving all fields props related to the filter into the datasource seems a bit confusing since they are only related to the filter widget. However if this approach facilitates an easier implementation it can be followed.
Regards,
Angel Petrov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.