Skip to content

chore(textboxes): simplify handling of ValueChange events in the examples #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions components/maskedtextbox/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
<br />

<TelerikMaskedTextBox Mask="0000-0000-0000-0000" Value="@TheValue"
ValueChanged="@( (string v) => ValueChangedHandler(v) )"
ValueChanged="@ValueChangedHandler"
Label="Credit Card Number:">
</TelerikMaskedTextBox>

Expand All @@ -74,8 +74,6 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the

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

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


## See Also

Expand Down
4 changes: 1 addition & 3 deletions components/textarea/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
@TextAreaValue
<br />
<TelerikTextArea Value="@TextAreaValue"
ValueChanged="@((string input) => ValueChangedHandler(input))">
ValueChanged="@ValueChangedHandler">
</TelerikTextArea>

@code {
Expand All @@ -67,8 +67,6 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the

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

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

## See Also

* [TextArea Overview]({%slug textarea-overview%})
6 changes: 2 additions & 4 deletions components/textbox/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the
@result
<br />

<TelerikTextBox ValueChanged="@( (string s) => MyValueChangeHandler(s) )"></TelerikTextBox>
<TelerikTextBox ValueChanged="@MyValueChangeHandler"></TelerikTextBox>

@code {
string result;
Expand All @@ -89,8 +89,6 @@ The `ValueChanged` event fires upon every change (for example, keystroke) in the

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

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

>caption Handle ValueChanged and provide initial value

````CSHTML
Expand All @@ -99,7 +97,7 @@ from the handler: @result
from model: @theTbValue
<br />

<TelerikTextBox ValueChanged="@( (string s) => MyValueChangeHandler(s) )" Value="@theTbValue"></TelerikTextBox>
<TelerikTextBox ValueChanged="@MyValueChangeHandler" Value="@theTbValue"></TelerikTextBox>

@code {
string result;
Expand Down