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

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

3 Answers 282 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 23 Apr 2015, 11:20 AM

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

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 Apr 2015, 01:46 PM
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.

 
0
Michael
Top achievements
Rank 1
answered on 24 Apr 2015, 01:51 PM

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

0
Dimitrina
Telerik team
answered on 24 Apr 2015, 02:26 PM
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.

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