|
<SfNumericTextBox ID="numeric" TValue="double?">
<NumericTextBoxEvents TValue="double?" Created='() => { onCreated("numeric"); }'></NumericTextBoxEvents>
</SfNumericTextBox>
@code {
public async Task onCreated(string id)
{
await JsRuntime.InvokeVoidAsync("create", id);
}
}
|
|
window.create = (id) => {
document.getElementById(id).addEventListener("mousewheel", function (e) {
e.stopImmediatePropagation();
})
}
|
|
<CustomColFormRadzen labelCaption="+ Metragem:" colCssClass="c0l-md-12 col-lg-3" colstyle="margin-bottom: 20px" labelDivCssClass="align-items-center d-flex"></CustomColFormRadzen>
<SfNumericTextBox ID="numeric" @bind-Value="@KmMragem" TValue="int" Min="0" Format="n0" ShowSpinButton="false">
<NumericTextBoxEvents TValue="int" Created='() => { onCreated("numeric"); }'></NumericTextBoxEvents>
</SfNumericTextBox> |
Hi,
This solution is working good, thanks.
Is it possible to add a property to NumericTextBox like "AllowChangeByScroll"?
Regards
Hi Alexsandro,
We have logged your requirement as a uncertain feature request at our end. This support will be included in any one of our upcoming releases. Please track the status of the reported issue from the below feedback.
Feedback Link: https://www.syncfusion.com/feedback/45728/need-to-provide-support-to-disable-the-mouse-wheel-on-sfnumerictextbox