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

[Solved] Insert Row Problem

1 Answer 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Peter
Top achievements
Rank 1
Peter asked on 01 Jul 2011, 01:10 AM
I have a RadGridView that it's ItemsSource is bound to a collection MyItems in my view model,
and I have the ShowInsertRow = True.
When I click on the insert row, it adds a new empty record to MyItems in my view model.
I think it should not be doing that because I have not commit my edit of the row that I am inserting.

Is there a way that I can make it so that it insert the item after I commit the new row (by press enter or lost the focus of the insert row)?

Thanks,

Peter

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 01 Jul 2011, 07:33 AM
Hello Peter,

I am afraid that this behavior cannot be changed but keep in mind that if you cancel the edit the newly inserted row will be removed from the source collection.

Best wishes,
Milan
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
Tags
GridView
Asked by
Peter
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or