Has anyone found a way to filter a datagrid by more than one option in blazorise?
Tried using SelectList in a new modal to create a list to filter on, and Checkboxes to create a list to filter on
1
2
Related
I have a multi select Vuetify checkboxes populated from list. I want to be able to search/filter checkboxes by the their label. When the label is searched using v-text-field, filtered checkboxes get automatically selected.
I want the checkboxes to be selected manually after filtering is completed.
Below is sample codepen for the issue.
`https://codepen.io/solarurja/pen/OJEpdXg`
I have a Jqgrid implementation which has a column filter with checkbox list. It works as expected but the problem is it triggers the search on every check/uncheck of the values in the checkbox list in the column filter. what I want is to let user check/uncheck as many values he/she wants and then have a "ok" button to trigger the search just like the image :Excel Implementation
autosearch should be set to false and use triggerToolbar() when you presse the button.
there is a feature called "Filter Row" in Kendo Grid
http://demos.telerik.com/kendo-ui/grid/filter-row
I want to add a drop-down list instead of a text box or a number box, to the filter box. It's for filtering a column that has countries. So I want list of countries in a drop-down list. How can I do this?
It's very similar to the custom Filter Menu (http://demos.telerik.com/kendo-ui/grid/filter-menu-customization). I made the mistake of no using valuePrimitive: true. You might not want it in your situation but keep that in mind.
Here's a sample: http://dojo.telerik.com/OKaS
Also, the filter menu should take up the editor model of the column but it's not always what you want.
Edit
Starting from 2014 Q2 SP1, the template function now receives an object containing "datasource" and "element". In my example, you would have to change the dropdown initialization from "container.kendoDropDownList" to "container.element.kendoDropDownList". The datasource is empty in my example but I'm assuming this can be used to pass the choices to a control without requiring another datasource or to externalize your current. I have not experimented with this feature but I suggest you do before taking my sample blindly.
As Pluc mentioned earlier valuePrimitive: true will help you create a custom filter for your grid/columns to send id's to your controller, if you are not using setting this property true you will receive an Object in your controller instead of a number, the conversion will not be made automatically . This is still working as of 2019
I'm in a situation where I have two different Kendo UI Datasources, and they both contain a field called "ID".
Datasource1
Datasource2
Now I need to to the following:
First apply filter and group to Datasource 1 (this works fine)
Then populate a listView only with the items which has an ID that is also part of Datasource2
I tried doing this with a script in the listView template, but when items are "excluded" it outputs an empty li-element.
Any ideas?
I got help from Telerik support to solve this. Here is the solution they proposed:
As there is not built-in functionality that does the functionality that you are looking for, you will need to implement it manually. First you will need to filter the dataSource then loop through the results and get the items from the second dataSource with the ID that match the one you are looking for (using the get()) method. Then you can push the items in a new dataSource that you can use to show the ListView template.
It works great.
I'm using a custom popup editor in a detail grid (several fields are using data attribute initialization).
One of the fields is a Kendo DropDownList, but I need the options in the list to be filtered based on the value of one of the fields in the currently expanded master row.
I've managed a buggy workaround by setting a global variable when a master row is expanded and then filtering the dropdownlist's datasource using a function call on the open event.
I'm sure there must be a better way to do this. Is it possible to specify a datasource filter using data attribute initialization -- I can't see anything in the docs for this.
Thanks
Missed the obvious...
I just needed to filter the datasource for the drop down list in the grid's edit event.