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

In-Place Editing - how to remove edit item???

3 Answers 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian Coetzer
Top achievements
Rank 2
Ian Coetzer asked on 03 Sep 2008, 02:45 PM

Hi

I'm using in-place editing, and when I have saved the item data to the database I cannot seem to hide the edit item from the grid, I have tried the following routines.

e.Item.OwnerTableView.IsItemInserted =

False

RadGrid1.MasterTableView.ClearEditItems()


But It stays in edit mode or I get the error message below?

Insert item is available only when grid is in insert mode.

How can I hide the in-place edit row??

3 Answers, 1 is accepted

Sort by
0
Missing User
answered on 03 Sep 2008, 03:49 PM
Hello Ian,


To see more information on the requested functionality, please refer to the following article. I hope this information helps.

Sincerely yours,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Accepted
Shinu
Top achievements
Rank 2
answered on 04 Sep 2008, 06:33 AM
Hi Ian,

The grid might stay in edit/insert mode if you perform manual updates/inserts with code and accidentally set AllowAutomaticUpdates/AllowAutomaticInserts to true. Can you please check whether this is the reason for the erroneous
 behavior with your grid configuration? If so, set these properties to false.

Regards
Shinu.


0
Ian Coetzer
Top achievements
Rank 2
answered on 04 Sep 2008, 08:01 AM
Baie Dankie Shinu!

Your answer was to the point and solved my problem.

Thanks again!
Tags
Grid
Asked by
Ian Coetzer
Top achievements
Rank 2
Answers by
Missing User
Shinu
Top achievements
Rank 2
Ian Coetzer
Top achievements
Rank 2
Share this question
or