You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/numerictextbox-disable-arrows.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Disabling NumericTextBox Arrows at Min or Max Value in Blazor
2
+
title: Disable NumericTextBox Arrows at Min or Max Value in Blazor
3
3
description: Learn how to programmatically disable the increase or decrease arrows of a NumericTextBox in Blazor when the value reaches its minimum or maximum limit.
4
4
type: how-to
5
5
page_title: How to Disable NumericTextBox Arrows on Min or Max Value in Blazor
@@ -22,7 +22,7 @@ ticketid: 1665216
22
22
23
23
## Description
24
24
25
-
When using the NumericTextBox with arrows enabled, I want to disable the down arrow programmatically at the component's minimum value to prevent looping to the maximum value.
25
+
In a NumericTextBox with enabled arrows, I want to disable the down arrow programmatically at the component's minimum value to prevent looping to the maximum value.
26
26
27
27
This KB article answers the following questions:
28
28
@@ -31,10 +31,12 @@ This KB article answers the following questions:
31
31
32
32
## Solution
33
33
34
-
To prevent the increase/decrease arrows of the NumericTextBox from being used when the numeric value reaches its minimum or maximum, apply a conditional CSS class to disable the buttons.
34
+
To prevent your end users from looping through the minimum and maximum values with the icnrease/decrease arrows of the NumericTextBox, apply a conditional CSS class to disable the buttons.
35
35
36
36
The example below demonstrates how to conditionally render CSS styles to disable the increase or decrease arrows based on the current value of the NumericTextBox.
37
37
38
+
>caption The Min and Max values should not match the default minimum and maximum values of the Value type.
39
+
38
40
````CSHTML
39
41
<style>
40
42
.disable-increase .k-spinner-increase,
@@ -44,19 +46,19 @@ The example below demonstrates how to conditionally render CSS styles to disable
0 commit comments