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
UI/UX Tools
CMS
Free Tools
Support and Learning
Docs & Resources
Productivity and Design Tools
Hi Robert,
I can confirm that the behavior you encountered is indeed a bug in the Slider. I have created a public item on your behalf to address this: The Slider default button type is "submit", which causes an unexpected form submission.You are automatically subscribed as a creator, which means you will receive email notifications regarding the status updates of this item.
In the interim, as a temporary solution, you can use a small JavaScript function that manually changes the Slider buttons type to "button".
I have prepared an example for you that shows the approach:
@inject IJSRuntime js <TelerikSlider @bind-Value="@SliderValue" Min="0" Max="100" SmallStep="1" LargeStep="20" Width="400px"> </TelerikSlider> <script suppress-error="BL9992"> window.changeButtonTypes = function () { var buttons = document.querySelectorAll(".k-slider button"); for (var i = 0; i < buttons.length; i++) { buttons[i].type = "button"; } }; </script> @code { public int SliderValue { get; set; } protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { await js.InvokeVoidAsync("changeButtonTypes"); } } }
=====
Additionally, as a token of appreciation for bringing this problem to our attention, I have credited your account with Telerik points.
Regards, Hristian Stefanov Progress Telerik