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

ColumnMenu Filters - Default first search parameter to "Contains" (from the default of "Starts With")

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 20 Jan 2014, 03:31 PM
In the column menu under the filter, the first box is defaulted to "Starts With".  We've found that our users are switching this to "Contains" about 90% of the time.  How to we change the default to be "Contains".

Thanks
Jason

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 21 Jan 2014, 09:13 AM
Hi Jason,


To achieve this, you could bind to the columnMenuInit event of the Grid, get the DropDownList instance and set it's value to Contains.
E.g.
function columnMenuInit(e) {
    var ddl = e.container.find("[data-role='dropdownlist']:first").data("kendoDropDownList");
    ddl.value("contains");
    ddl.trigger("change");
}

I hope this information helps. Have a great day!

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Jason
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or