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

DataGrid and problems with edit

1 Answer 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 22 Jul 2013, 09:57 AM
Hi.
I have gridview with enabled properties CanUserInsertRows.
Adding rows acuatlly works fine (thanks for RowEditEnded).
But now i'd like to edit selected row. So when i click on row, edit all information it raises RowEditEnded event. In this place im checking is there card with ID = selectedRow. If there is = edit, else = add new. Ok, new information is updated into database, but grid seems to still be in edit mode (so when i click enter in last cell, it update card in db, and going into edit in next - below - row).
Is there any way to cancel edit mode, unselect row or something else?

I also tried to use button, with click action = edit row. How can i put selected row into edit mode?
Thanks in advance.
Reards, Adam.

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 25 Jul 2013, 08:38 AM
Hello Adam,

You can create a custom Keyboard provider that will specify the needed actions on the necessary key inputs. In your case, you can predefine the behavior of the Enter key. You can see how this can be achieved here.

As for your second question:

You can check this help article for a reference.

I hope this information helps.

Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Paweł
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or