Hi Malcolm,
Thank you for contacting Syncfusion support.
To enable the grouped by field included in the DropDownList filtering, we need to modify the search query in the search event to include the category field. Kindly refer to the following code snippet.
<script>
$('#vegetable').ejDropDownList({
width: "100%",
watermarkText: "Select a vegetable",
dataSource: skillset,
fields: { text: "skill", category: "category" },
allowGrouping: true,
enableFilterSearch: true,
search: function (args) {
args.searchQuery = ej.Query().where(ej.Predicate(this.model.fields.text, this.model.filterType, this._queryString, true).or(this.model.fields.category, this.model.filterType, this._queryString, true));
}
});
</script> |
Please let us know if you need any further assistance on this.
Regards,
Prince