Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
AI-Enhanced UI Tools
CMS
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.