Is it a bug that the grid does not do a query again for empty strings? for example:
http://demos.telerik.com/kendo-ui/grid/remote-data-binding
if we do a filter for Ship Name as "Hanari Carnes" it will match as expected.
If the filter is then changed to a empty string i would expect it to search null or empty strings... and therefore have no results.
The grid still keeps the filter as "Hanari Carnes" (though you no longer see it seeing as you've now removed it).
Thanks, Matt
http://demos.telerik.com/kendo-ui/grid/remote-data-binding
if we do a filter for Ship Name as "Hanari Carnes" it will match as expected.
If the filter is then changed to a empty string i would expect it to search null or empty strings... and therefore have no results.
The grid still keeps the filter as "Hanari Carnes" (though you no longer see it seeing as you've now removed it).
Thanks, Matt
5 Answers, 1 is accepted
0
Accepted
Hello Matt,
I am afraid that applying an empty string filter is currently not supported through the filter menu, however this could be done using the DataSource filter method.
Regards,
Alexander Popov
Telerik
I am afraid that applying an empty string filter is currently not supported through the filter menu, however this could be done using the DataSource filter method.
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Matt
Top achievements
Rank 1
answered on 13 Aug 2014, 10:35 AM
Thanks Alex,
in that case is there a way to validate the input to say it is required?
Actually i already have scripts scouting for other sections to add validators to, i can probably add one for all column filter.
in that case is there a way to validate the input to say it is required?
Actually i already have scripts scouting for other sections to add validators to, i can probably add one for all column filter.
0
Hi Matt,
This could be achieved by initializing a Validator in the filter menu once the Grid's filterMenuInit event has been triggered.
Regards,
Alexander Popov
Telerik
This could be achieved by initializing a Validator in the filter menu once the Grid's filterMenuInit event has been triggered.
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Matt
Top achievements
Rank 1
answered on 13 Aug 2014, 04:09 PM
That will be useful.
Is there a global factory that i can extend or listen to for a event... like saying the grid has been initialized without adding it into every one of my implemented grids.
Lets say i wanted to listen on the html body element for initialization events, of which are type grid. But i may not necessarily know what will be on the page. The basic idea is so i can attach the same rules/filters every time a grid is loaded without bloating the rest of the code / mvvm parts. What might be a good way of doing that? Or am i being a little crazy at this point ?
Thanks again,
Matt
Is there a global factory that i can extend or listen to for a event... like saying the grid has been initialized without adding it into every one of my implemented grids.
Lets say i wanted to listen on the html body element for initialization events, of which are type grid. But i may not necessarily know what will be on the page. The basic idea is so i can attach the same rules/filters every time a grid is loaded without bloating the rest of the code / mvvm parts. What might be a good way of doing that? Or am i being a little crazy at this point ?
Thanks again,
Matt
0
Hello again Matt,
You can always modify the Grid's prototype, for example:
Regards,
Alexander Popov
Telerik
You can always modify the Grid's prototype, for example:
kendo.ui.Grid.prototype.options.filterMenuInit =
function
(){alert()}
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!