6 Answers, 1 is accepted

Hi Hristo,
Out of the box JSON.stringify does not serialize function references. This is why when settings are restored the custom editor is not reinitialized.
In order to keep the custom editor I suggest adding it to the options again before calling the setOptions method. The relevant code would look like this:
$("#load").click(function (e) {
e.preventDefault();
var options = localStorage["kendo-filter-options"];
if (options) {
options = JSON.parse(options);
options.dataSource = dataSource;
options.fields[0].editorTemplate = contactTitleEditor;
filter.setOptions(options);
filter.applyFilter();
}
});
I also prepared a dojo sample illustrating how the custom editor can be persisted. The sample uses the KendoUI jQuery Grid, however, the approach for persisting the settings will be the same with the .NET Core wrappers.
Give the approach a try and let me know how it works for you.
Regards,
Viktor Tachev
Progress Telerik

Hi Viktor,
It`s work great, but I have another trouble. I want to hide some of the filter comparisons and when change this behaviour my initial value is lost. I wanted to be after or equal to.
Hello Hristo,
The behavior from the screenshots can be observed if there is default filter expression applied and the operator that is used is not in the listed under the Operators option.
That said, I tried to replicate the behavior with our online examples and was not able to. Check out the video below that shows the behavior I am observing.
https://www.screencast.com/t/6cgC7JPi
Regards,
Viktor Tachev
Progress Telerik

Hello, Viktor
I didn't express myself well. For Your example if You don`t have predefined filter expression for name , when click to add new one, it start with equal, I want to start with contains.
Hello Hristo,
Thank you for the clarification.
Specifying the order in which operators are listed is currently not available out of the box. However, if you would like the functionality to be available out of the box I suggest submitting a feature request in our feedback portal.
https://feedback.telerik.com/kendo-jquery-ui
We monitor the portal and prioritize items in it based on customer demand and popularity. The more votes an item has more likely it is that the item will be considered for planning in a future release.
Regards,
Viktor Tachev
Progress Telerik