How to disable arrow navigation in GridToolBarTemplate

1 Answer 22 Views
Grid TextBox
Bram
Top achievements
Rank 1
Iron
Iron
Bram asked on 19 Nov 2025, 03:55 PM

Hi

I want to add a textbox in the  GridToolBarTemplate. Because of the built-in arrow navigation it is not possible to move the cursor inside the textbox. Is it possible to disable the default arrow navigation in the GridToolBar?

Example in this simple REPL

Enter any text in the Textbox, hit the left arrow keyboard button and notice the cursor stays at the end of the text.

 

Best regards

Bram

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Nov 2025, 09:02 AM

Hello Bram,

You can prevent the key events from bubbling from the TextBox to the ToolBar:

<GridToolBarTemplate>
    <span onkeydown="event.stopPropagation()">
        <TelerikTextBox @bind-Value="@TestInput"
                                  Placeholder="Placeholder...">
        </TelerikTextBox>
    </span>
</GridToolBarTemplate>

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid TextBox
Asked by
Bram
Top achievements
Rank 1
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or