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

How to implement new row behaviour as in wpf toolkit DataGrid

10 Answers 246 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adrian Oltean
Top achievements
Rank 1
Adrian Oltean asked on 17 Mar 2010, 09:36 AM
Hi,

I have just started with evaluating telerik RadGridView. 
What I want is to make RadGridView behave like the wpf toolkit DataGrid regarding the last adding new row.
This row should be always visible and it should add the bound object to the underlaing list just when you click away or press enter.
A new empty adding row should be displayed as a last row immediately after.

I would really appreciate some hints on how to proceed with achieving this using telerik RadGridView.

10 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 18 Mar 2010, 04:20 PM
Hello Adrian Oltean,

Unfortunately with the current version of RadGridView it is not possible. You can set RadGridView.ShowInsertRow = true, and you will see area where user can click to add a new item, but this area for the time being is just below the header row and cannot be moved. We have plans to add enumeration which will control where this insert row should be placed, but I cannot commit with any specific date or release when this will be available.

Don't hesitate to contact us if you have other questions.

Best wishes,
Nedyalko Nikolov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Adrian Oltean
Top achievements
Rank 1
answered on 19 Mar 2010, 08:25 AM
Thanks for your feedback,

We will stick with existing behaviour for the time beeing.
Anyway please consider this as a feature request for future .development.

BR


0
Nedyalko Nikolov
Telerik team
answered on 22 Mar 2010, 04:33 PM
Hello Adrian Oltean,

I've already added this feature to our product backlog list. Thank you for your feedback.

All the best,
Nedyalko Nikolov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Muhammad
Top achievements
Rank 1
answered on 12 Jun 2010, 06:56 AM
Hi,
I am giving my collection of products as an Itemsource of gridView. For adding new row, Ad?dNew Button doesn't work when i provide IQuerable<Prodcuts> type of collection, but it is working fine with IList<Products>. Any Idea?

0
Vlad
Telerik team
answered on 14 Jun 2010, 06:58 AM
Hi,

 You cannot add items in IQuerable<T> however you can do this with IList<T>.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Alfredo
Top achievements
Rank 1
answered on 21 Dec 2010, 04:03 PM
Hello,

Is there any updates about this?

Thanks.
0
Nedyalko Nikolov
Telerik team
answered on 23 Dec 2010, 09:56 PM
Hello Alfredo Fernández,

We have plans to extend add new row functionality to support collections that does not implement IList interface, but unfortunately there is no way to support IQueryable<T> out of the box. IQueryable<T> interface doesn't provide any method that could be used to add new item. Our idea about extending this feature is to discover add method which could be used to add item to the collection and use it.

Greetings,
Nedyalko Nikolov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Nikolay
Top achievements
Rank 1
answered on 25 Feb 2011, 01:34 PM
Hi! 

what about moving new row area to last row of the grid? Was it implemented?
0
Vanya Pavlova
Telerik team
answered on 28 Feb 2011, 08:09 AM
Hello Nikolay,


With the current implementation of RadGridView there is no easy way to determine the actual count of  items in RadGridView and the position of GridViewNewRow exactly after the last GridViewRow and to keep it synchronized. I strongly recommend you to use the default behavior of GridViewNewRow. Also you may take a look at the following forum thread.


Regards,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Nikolay
Top achievements
Rank 1
answered on 28 Feb 2011, 11:18 AM
I see. Thank you! 
Tags
GridView
Asked by
Adrian Oltean
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Adrian Oltean
Top achievements
Rank 1
Muhammad
Top achievements
Rank 1
Vlad
Telerik team
Alfredo
Top achievements
Rank 1
Nikolay
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or