Unplanned
Last Updated: 06 Nov 2020 13:02 by ADMIN
Wojciech
Created on: 10 Apr 2015 08:42
Category: Grid
Type: Feature Request
2
Both grid row filtering on one column and multi-check filtering on other
For example.
Consider table with 2 columns.
 - Task (limited number of possible tasks type)
 - Description (free text descriptions)

I would like to have table with multi-check on Task column and row filtering on Description column.
3 comments
ADMIN
Georgi Denchev
Posted on: 06 Nov 2020 13:02

Hi Martin,

The Add Multi-Check Filter to Grid in Row Mode article is the easiest available solution. When ColumnMenu() is turned on it brings the entire menu to the filter row, not just the filtering. There is no way to isolate the filter span because, it doesn't exist until we open the menu for the first time.

Alternatively you could use your own custom template for the filterable cell.

.Filterable(f => f.Cell(c => c.Template("rowFilterTemplate").ShowOperators(false)))

You can access the input field element through the function.

<script>
function rowFilterTemplate(data) {
        var element = data.element; // The input element.
    }
</script>

You can then create a kendo widget that is bound to this element. For example a DropDownList would look like this:

element.kendoDropDownList({
            dataSource: [{ MyField: 10 }, { MyField: 20 }],
            dataTextField: "MyField",
            dataValueField: "MyField",
            optionLabel: "--Select--",
            valuePrimitive: true
        });

However in this scenario you would need to provide a dataSource containing all the values for a particular column. Implementing this approach would take a lot of effort. My recommendation would be to stick with the above article. In case you haven't upvoted this Feature Request yet, feel free to do so.

The more upvotes a Request has, the better the chance it will get added.

Best Regards,
Georgi Denchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Martin
Posted on: 30 Oct 2020 11:30

I too really need the filter row on grids to support multi-checkbox filtering on certain columns, in a user-friendly way. If a column has .Multi(true), then its filter row cell should not render a text box filter, but instead a drop-down menu of checkboxes, in exactly the same way as on the filter column menu.

You have a demo of how to achieve this, but it does not work if the column chooser menu is also enabled (.ColumnMenu (true)).

ADMIN
Telerik Admin
Posted on: 14 Apr 2015 16:37
This indeed is not supported out-of-the-box.

Note that a possible alternative might be a combination of multi-checkbox filtering and standard filters by leaving the default filtering enabled for the corresponding grid column. See how this is done for the UnitPrice and Country columns in this example:
http://dojo.telerik.com/aRomO