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

Update calling ItemCommand with e.Canceled = true

2 Answers 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lucania
Top achievements
Rank 1
Lucania asked on 08 Jan 2013, 01:20 AM
I have a Radgrid with a template edit form, which has update & cancel buttons. All functions work fine, except with some data records.

With those records, when I click the update button, the ItemCommand event is called with RadGrid.UpdateCommandName, but e.Canceled is already set to true, so the record is never updated. I have tried removing all validation, but that makes no difference. If I capture the the RadGrid.UpdateCommandName event and set e.Canceled to false, the record is updated no problem.

So I'd really like to know what might be causing the RadGrid to set Canceled = true?

Thanks for any info.

2 Answers, 1 is accepted

Sort by
0
Lucania
Top achievements
Rank 1
answered on 08 Jan 2013, 01:26 AM
Note: The same problem is occurring on the RadGrid.PerformInsertCommandName event, the same work-around fixes it, but I'd really like to figure out what is causing this.
0
Jesper
Top achievements
Rank 1
answered on 01 Feb 2013, 02:18 PM
Hi, I had similar problem.
In my case, I have a <asp:RequiredFieldValidator> that is validated to false.

I hope this helps.
Tags
Grid
Asked by
Lucania
Top achievements
Rank 1
Answers by
Lucania
Top achievements
Rank 1
Jesper
Top achievements
Rank 1
Share this question
or