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

Grid cells become readonly when changing a value and pressing tab

2 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 19 Dec 2011, 09:44 AM
Is there a way to disable that behaviour?

Thanks,

Anders, Denmark

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 19 Dec 2011, 10:11 AM
Hello Anders,

Actually the cells have two modes : display and edit.
In display mode cells usually contain TextBlocks and in edit - TextBoxes.
Only one cell at a time can be in edit mode.

I am not sure about your requirement , but if the goal is to have TextBoxes in all cells - there is still a workaround - you can set the CellTemplate property of the column  to a custom template of yours, containing a TextBox.

Kind regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Anders
Top achievements
Rank 1
answered on 19 Dec 2011, 10:21 AM
Hi Pavel,

Let me rephrase it then:

Is there a way to keep the user's focus inside the cell until the changes are either committed or aborted? A way to not let the user press tab to leave the cell? Could I simply catch the Tab key and ignore it?

When tabbing away my changes are currently committed to the underlying view model (twice actually), but as a side result, all cells become readonly/disabled. Editing is not possible any more, which of course is frustrating to our users.

Thanks,

Anders, Denmark
Tags
GridView
Asked by
Anders
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Anders
Top achievements
Rank 1
Share this question
or