AddNew with QDSCV

2 posts, 0 answers
  1. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 02 Jul 2012 Link to this post

    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
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 03 Jul 2012 Link to this post

    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 >>

Back to Top