This is a migrated thread and some comments may be shown as answers.

Grid filtering issue

3 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
zhivko.zhelezov
Top achievements
Rank 1
zhivko.zhelezov asked on 13 Jun 2016, 10:34 AM

Hello,

I would like to report a filtering issue or ask if it is a normal functionality and why it is.
Let's suppose we have a grid with 'persons' data and there is a column age. If we try to filter the grid by age (For instance there are check boxes with the different ages into the grid) and select age 28 and 30. Then all persons with age 28 and 30 will be shown. Now if we try to deselect ages 28 and 30 and click the 'Filter' button then nothing happens(all check boxes are now deselected), the filtered result is still out there. When we just click 'Clear' button then all data is shown again as expected in the previous step. This could be seen in the example here: http://demos.telerik.com/kendo-ui/grid/filter-multi-checkboxes with unit price

Thanks!

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 Jun 2016, 12:16 PM
Hello Zhivko,

When nothing is selected from the filter options and the Filter button is clicked, nothing is executed as the filters do not work with empty criteria. This is the reason why the clear button is implemented to remove the filter criteria and return all the data items. This behaviour is by design.

Let me know if you need additional information on this matter.

Regards,
Stefan
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
0
zhivko.zhelezov
Top achievements
Rank 1
answered on 15 Jun 2016, 03:35 PM

Hello Stefan,

thanks for the answer.

I understand that this is by design but isn't it more user friendly if nothing is selected the filter to show all the data in grid. If nothing is selected that means that nothing is included in the filter...i.e. we do not filter now so we expect to see all the data, not the last active filter.

 

Regards,

Zhivko

0
Stefan
Telerik team
answered on 17 Jun 2016, 10:40 AM
Hello Zhivko,

I understand your point.

The way the filter functionality is implemented, it is more likely if the user wants to see all the items to click on the clear button instead of manually deselect all the items to achieve the same result.

You can apply a custom logic on Filter button click, to check if no checkboxes are selected and clear the filter, but this may compromise the other filters and we do not recommend it.

We will take your suggestion into consideration and discuss it with our developers and UX designers.

Regards,
Stefan
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
Grid
Asked by
zhivko.zhelezov
Top achievements
Rank 1
Answers by
Stefan
Telerik team
zhivko.zhelezov
Top achievements
Rank 1
Share this question
or