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

RadGrid1.MasterTableView.ClearSelectedItems() does not affect the radgrid in insert mode

4 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
El
Top achievements
Rank 1
El asked on 14 Feb 2011, 03:02 PM
As explained above, it does not close the Insert mode although it works like a charm in Edit mode. 
It inserts the data properly but then when Insert mode needs to be cleared it remains rather. Any ideas?
Thanks

4 Answers, 1 is accepted

Sort by
0
El
Top achievements
Rank 1
answered on 16 Feb 2011, 09:14 AM
Any explanation? Thanks
0
Princy
Top achievements
Rank 2
answered on 16 Feb 2011, 11:37 AM
Hello,

If you want to close the insert form, try the following code snippet.

C#:
RadGrid1.MasterTableView.IsItemInserted = false;
RadGrid1.MasterTableView.Rebind();

Thanks,
Princy.
0
El
Top achievements
Rank 1
answered on 28 Feb 2011, 11:55 AM
Message: Sys.WebForms.PageRequestManagerServerErrorException: Insert item is available only when grid is in insert mode.

Meaning, your suggestion didn't work for me. :(
0
El
Top achievements
Rank 1
answered on 28 Feb 2011, 12:19 PM

I just found the solution. All i had to do is to add the following line to the insert command event:

e.Canceled = True

Thanks
Tags
Grid
Asked by
El
Top achievements
Rank 1
Answers by
El
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or