How to implement adding new row the same way as WPF DataGrid does?

4 posts, 0 answers
  1. Michael
    Michael avatar
    8 posts
    Member since:
    Jan 2014

    Posted 23 Apr 2015 Link to this post

    WPF DataGrid has empty row at the end which is used to create new rows.

    1. How can similar row be added to GridView instead of row with label "Click to insert new row ..."?

    2. How to handle keyboard that hitting enter and tabbing out of last cell in the new row keeps adding new rows?

    Thanks, Michael

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 24 Apr 2015 Link to this post

    Hi Michael,

    You can configure RadGridView.NewRowPosition property which should apply to both you requirements 1. and 2.
    Please refer to our documentation on Adding Rows.

    Regards,
    Dimitrina
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. Michael
    Michael avatar
    8 posts
    Member since:
    Jan 2014

    Posted 24 Apr 2015 in reply to Dimitrina Link to this post

    No, it does not apply to requirement 1.

    I need a blank row (as in WPF DataGrid), but it shows GridViewNewRow control which looks like button with label "Click here to add new item".

    Thanks, Michael

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 24 Apr 2015 Link to this post

    Hi Michael,

    You are indeed right, I apologize for this misunderstanding. Configuring NewRowPosition will add a placeholder to the bottom of RadGridView, however, it will be like a placeholder and not like empty new row. Once you fill data in the first newly added row (after clicking on "Click to insert new row ...") though and press the Tab key, then a new empty row will be added from now on.
    As it turns out, there is not another option to suggest. I apologize for this inconvenience.

    Regards,
    Dimitrina
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top