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

RadGrid edit mode issue

3 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Farhad
Top achievements
Rank 1
Farhad asked on 10 Jun 2011, 01:37 PM
Hi,
   I am creating grids on selection of a dropdown item dynamically in Page_Init. The grids are editable and automatic insert is enabled. The update and insert is working properly.

 Once I click update after modifying a row, the row is still staying in edit mode and not returning to normal view, however the update happens successfully. I had to click Cancel to return the row to normal mode. The same is happening for Inserting new row also.

Is it the expected behaviour of RadGrid ? I guess not. Then what may be the possible reason for this and how can I overcome this.


Thanks & Regard,
  Farhad

3 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 11 Jun 2011, 11:42 AM
Hi,

plz set below property.
AllowAutomaticInserts = = "False"
AllowAutomaticUpdates = "False"


Thanks,
Jayesh Goyani
0
Farhad
Top achievements
Rank 1
answered on 13 Jun 2011, 07:45 AM
Hi Jayesh,

If I disable the Automatic Inserts then I have to deal the insertion things manually and in telerik grid that gives a lot of hiccups.  And over all cutting the problem itself out may be a fix but not a smart solution. Can't I have the automatic insert/updates enabled and still the grid behave as usual ?

Thanks & Regards,
  Farhad
0
Farhad
Top achievements
Rank 1
answered on 13 Jun 2011, 07:55 AM
I get it now, you meant to set the AllowAutomaticInserts = "False" in the insert event handler. Thats works nice.

Thanks.
Tags
Grid
Asked by
Farhad
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Farhad
Top achievements
Rank 1
Share this question
or