Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Docs & Resources
Productivity and Design Tools
Hi
Is Focus is available for Telerik Button?
Could you please suggest on this?
Thanks,
Vishnu Vardhanan H
Hi Vishnu,
You can programmatically focus any specific button using the FocusAsync() method the TelerikButton provides. I have prepared for you an example showing a possible implementation of the functionality:
<TelerikButton OnClick="@FocusMyButton">Focus the second button!</TelerikButton> <br /> <br /> <br /> @result <br /> <TelerikButton @ref="@button" OnClick="@OnClickHandler">Second button!</TelerikButton> @code { string result; string moreInfo; TelerikButton button; async Task FocusMyButton() { await button.FocusAsync(); } async Task OnClickHandler(MouseEventArgs args) { result = "Second Button was clicked at: " + DateTime.Now.ToString(); } }
You can find more details and examples regarding the FocusAsync() method in the following knowledge base article: Focus TextBox Programmatically.
I hope this helps. Please let me know if you need any further information.
Regards, Hristian Stefanov Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.