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

[Solved] After insert FormTemplate doesn't close (manual databind)

2 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lars
Top achievements
Rank 1
Lars asked on 25 Aug 2009, 01:55 PM
Hi,

i have a problem, closing a FormTemplate after inserting data.
The data was inserted correct within the RadGrid1_InsertCommand. And afterwards correct rebinded (RadGrid1_NeedDataSource).

I also see the new insered row in the grid. But the Formtemplate stays open. (cleared)
I use the AutomaticInserts but don't have a datasource, the data was bind manually.

I tryed out 
MastertableView.ClearEditItems();
and
e.item.edit = false in the InsertCommand. Nothing helps. :-(

Some ideas out there?

Thanks in advance
Lars

2 Answers, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 25 Aug 2009, 08:22 PM
I'm having the same issue and (dang it!) missed your thread and started a new one on this:

http://www.telerik.com/community/forums/aspnet-ajax/grid/closing-the-edit-template-in-a-rad-grid.aspx

I have some of my sample code there and am curious if anyone else is seeing the same behavior.



0
Princy
Top achievements
Rank 2
answered on 26 Aug 2009, 04:42 AM
Hello Lars,

The automatic operations work only when binding the grid to a declarative data source using the DataSourceID property of the grid. You must configure the data source so that it supports the automatic operations.Thus you would have to set the AllowAutomaticInserts/AllowAutomaticUpdates properties to false inorder to close the edit form after performing manual operations. Also refer to the following document which would give you a clear idea of automatic operations:
Automatic DataSource operations

Thanks
Princy.


Tags
Grid
Asked by
Lars
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or