This is a migrated thread and some comments may be shown as answers.

Tab to indent text in cell

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan Paolo
Top achievements
Rank 1
Jan Paolo asked on 19 Mar 2019, 08:46 PM

Hello, how do we set the `GridViewDataColumn` to capture Tab and indent the text in the cell instead of moving to another cell?

Thank you,

Jan

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 22 Mar 2019, 11:15 AM
Hello Jan Paolo GO,

To achieve your requirement you can create custom KeyboardCommandProvider and override the ProvideCommandsForKey method. Then you can double check if what is the current tab and add the BeginEdit command. I have prepared a sample project which demonstrates this behavior.

As a side note. In order to force the TextBox to accept Tab key to add an indent, the AcceptsTab property needs to be set to True. To do that you can create custom DataTemplate for the CellEditTemplate and place inside a TextBox. Check the attached project.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Jan Paolo
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or