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

When press cancel during edit mode the row is deleted

2 Answers 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 16 Jul 2015, 02:51 PM

I have a very basic model bound grid with edit and destroy commands.

 When the grid is in Edit mode, I press the cancel button and I expect the row to stay the same as before, however the grid deletes the row?  I have verified that it is not invoking any destroy methods

 

2 Answers, 1 is accepted

Sort by
0
Atanas Georgiev
Telerik team
answered on 20 Jul 2015, 07:23 AM
Hello Karl,

We were not able to reproduce the issue locally or in our online demosPlease create an isolated runnable example, where the issue is present and we will be happy to take a look.


Regards,
Atanas Georgiev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Karl
Top achievements
Rank 1
answered on 24 Aug 2015, 06:28 PM

It was because the id of the model was specified in the set up, which I have found is key to the grid functioning properly

 

                                    .DataSource(dataSource => dataSource
                                        .Ajax()
                                        .Model(m =>
                                        {
                                            m.Id(p => p.Id);
                                        })​

 

 

Tags
Grid
Asked by
Karl
Top achievements
Rank 1
Answers by
Atanas Georgiev
Telerik team
Karl
Top achievements
Rank 1
Share this question
or