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

AddNew with QDSCV

1 Answer 8 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Veteran
Heiko asked on 02 Jul 2012, 07:29 PM
Hi!

We use a GridView bound to a QDSCV inside a ViewModel (which works fine). Adding new items is done through a button outside the grid, then calling .AddNew(...) on the underlying QDSCV. A new line is added to the GridView, but it is not in edit mode. The user has to click on the row to put it in edit mode so (s)he is able to enter data. How can we achieve that the newly added row in the Grid is editable without additional mouse click?

Some more information: the grid view uses a cell edit template, no insert row.

Best regards
Neils

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 03 Jul 2012, 05:27 AM
Hello,

 As I have understood you add new item calling  the AddNew(...) method on the underlying QDSCV. If you would like to put the added item in edit mode, then you could:
1. Scroll to the newly added row. Please take a look at this forum thread on how to do that.
2. Put the first cell into edit mode, using the BeginEdit() method of the GridViewRow. 

row.BeginEdit();

I hope that this is what you need.

Greetings,
Didie
the Telerik team

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

Tags
GridView
Asked by
Heiko
Top achievements
Rank 1
Veteran
Answers by
Dimitrina
Telerik team
Share this question
or