Skip to content

Commit f5d5da9

Browse files
chore(textboxes): simplify handling of ValueChange events in the examples (#165)
* chore(textboxes): simplify handling of ValueChange events in the examples; Remove info box describing why we need to use lambda * chore(textboxes): fix ToCs Co-authored-by: Marin Bratanov <[email protected]>
1 parent e961b4e commit f5d5da9

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

components/maskedtextbox/events.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
5757
<br />
5858
5959
<TelerikMaskedTextBox Mask="0000-0000-0000-0000" Value="@TheValue"
60-
ValueChanged="@( (string v) => ValueChangedHandler(v) )"
60+
ValueChanged="@ValueChangedHandler"
6161
Label="Credit Card Number:">
6262
</TelerikMaskedTextBox>
6363
@@ -74,8 +74,6 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
7474

7575
@[template](/_contentTemplates/common/general-info.md#event-callback-can-be-async)
7676

77-
@[template](/_contentTemplates/common/issues-and-warnings.md#valuechanged-lambda-required)
78-
7977

8078
## See Also
8179

components/textarea/events.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
5050
@TextAreaValue
5151
<br />
5252
<TelerikTextArea Value="@TextAreaValue"
53-
ValueChanged="@((string input) => ValueChangedHandler(input))">
53+
ValueChanged="@ValueChangedHandler">
5454
</TelerikTextArea>
5555
5656
@code {
@@ -67,8 +67,6 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
6767

6868
@[template](/_contentTemplates/common/general-info.md#event-callback-can-be-async)
6969

70-
@[template](/_contentTemplates/common/issues-and-warnings.md#valuechanged-lambda-required)
71-
7270
## See Also
7371

7472
* [TextArea Overview]({%slug textarea-overview%})

components/textbox/events.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
7575
@result
7676
<br />
7777
78-
<TelerikTextBox ValueChanged="@( (string s) => MyValueChangeHandler(s) )"></TelerikTextBox>
78+
<TelerikTextBox ValueChanged="@MyValueChangeHandler"></TelerikTextBox>
7979
8080
@code {
8181
string result;
@@ -89,8 +89,6 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
8989

9090
@[template](/_contentTemplates/common/general-info.md#event-callback-can-be-async)
9191

92-
@[template](/_contentTemplates/common/issues-and-warnings.md#valuechanged-lambda-required)
93-
9492
>caption Handle ValueChanged and provide initial value
9593
9694
````CSHTML
@@ -99,7 +97,7 @@ from the handler: @result
9997
from model: @theTbValue
10098
<br />
10199
102-
<TelerikTextBox ValueChanged="@( (string s) => MyValueChangeHandler(s) )" Value="@theTbValue"></TelerikTextBox>
100+
<TelerikTextBox ValueChanged="@MyValueChangeHandler" Value="@theTbValue"></TelerikTextBox>
103101
104102
@code {
105103
string result;

0 commit comments

Comments
 (0)