I've enabled the search panel of a grid, the grid is the only control on a form and I want the initial focus to be in the textbox of the search panel when the user opens the form, how do I go about achieving this?
Thanks.
3 Answers, 1 is accepted
0
Dilyan Traykov
Telerik team
answered on 27 Jul 2016, 02:22 PM
Hello Kieron,
The desired behavior can be achieved by handling RadGridView's Loaded event and setting the focus to the TextBox element of the GridViewSearchPanel, like so:
Following on the above, we would like to keep the focus on the textbox once the user has hit enter; i.e. once the search results are populated, the focus should go back to the textbox. We have tried using the above but to no avail.
Please suggest a solution. Let me know if you need any more information.
I've prepared a small sample project where the TextBox in the search panel does not lose the focus once the Enter key is pressed. Can you please have a look and let me know how this differs from the setup you have at your end?
I will be awaiting your reply.
Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.