When you click on the filter icon in a Grid column, the popup window by default sets the focus to the drop down list for the filter operators(Contains, Starts With, etc.). My users want to start typing in the text field immediately. How do I set the focus to the text field as soon as the filter box pops up? I looked at the filterMenuInit event, but couldn't see a solution.
Thanks.
5 Answers, 1 is accepted
Hello John,
You could use the filterMenuInit event of the Grid and focus the correct element. I demonstrated the approach in the following example.
I wish you a great day!
Regards,Dimiter Madjarov
Telerik
Hello, Vrezh,
Are you referring to the incell editing functionality of the Kendo UI Grid and that the editable cells open on click?
https://demos.telerik.com/kendo-ui/grid/editing
To change the focus, the grid current() method can be used:
https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/current
To open a cell for editing, you can use the editCell() method:
https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/editcell
In case I misunderstood the requirement, please provide more details.
Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Best Regards,
Vrezh Sargsyan
Hello, Vrezh,
If you would like to disable a particular column for editing you could set editable to return false for that column.
https://dojo.telerik.com/oPExOmOd
Please let me know if that suits your purposes. Alternatively you could modify the above example for further assistance or provide more details for the functionality you are looking for.
Regards, Silviya Stoyanova Progress Telerik