Unplanned
Last Updated: 02 Nov 2020 09:19 by ADMIN

I would like to be able to show or hide a character counter like in this demo by using a boolean parameter. 

<AdminEdit>

Currently, this could be achieved as shown in this demo or from this example from the documentation:

<label for="myCustomTextAreaId">My Telerik TextArea</label>
<TelerikTextArea @bind-Value="@TextAreaValue"
                 Id="myCustomTextAreaId"
                 Name="myCustomTextAreaId"
                 PlaceHolder="Enter some Information"
                 AutoComplete="true"
                 TabIndex="2"
                 AutoSize="true">
</TelerikTextArea>

<div class="k-counter-container">
    <span>@TextAreaValue.Length</span><span>/200</span>
</div>

@code {
    public string TextAreaValue { get; set; } = String.Empty;
}

</AdminEdit>

Unplanned
Last Updated: 13 Jul 2026 07:40 by Mathieu
Created by: Mathieu
Comments: 0
Category: TextArea
Type: Feature Request
1

Currently the Telerik TextArea for Blazor stops propagation for the keyDown event for Enter key presses and the app cannot detect them with @onkeydown on the component's parent container. A possible workaround is to use @onkeyup.

This request is about some built-in configuration or event that allows the app to detect Enter key presses. The goal is to distinguish such user actions in scenarios where Shift+Enter creates new lines, while Enter triggers a custom action like submit.