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

RadGrid Edit form not closing on Insert, Update or Cancel

3 Answers 985 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 23 May 2016, 08:18 PM

I have a RadGrid which has a Detail link.  When this detail link is clicked, a RadWindow with a series of controls is displayed.  Among these controls is a RadGrid with an user control as its Edit Template.  I can open the edit template, but when I click Insert, Cancel or Update, the edit template will not close. 

 

This is the same template (and User Control) I use in a separate page that does not use a RadWindow but a normal ASPX page.  All of the functions (Insert, Cancel, Edit) work just fine in this page from the associated RadGrid.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 25 May 2016, 11:50 AM
Hello,

If automatic update is enabled for the grid and manual update is performed at the same time this could cause edit form to not close. Therefore, make sure that AllowAutomaticUpdates/Inserts is set to false.

Regards,
Pavlina
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Brahmaiah
Top achievements
Rank 1
answered on 23 Jan 2018, 12:03 AM

I have Nested Grid's, the parent grid Edit form closes on Update, but the child grid does not close on the Update click. 

Below is my Code, can you please help.

 

 <div class="demo-container no-bg" style="padding-left: 2em">
            <telerik:RadGrid RenderMode="Lightweight" ID="PartGroupGrid" DataSourceID="SqlDataSource_PartGroup" runat="server" ShowStatusBar="true" CellPadding="2"
                AutoGenerateColumns="False" PageSize="15" AllowSorting="True" AllowMultiRowSelection="False"
                AllowPaging="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" OnItemInserted="PartGroupGrid_ItemInserted" OnItemUpdated="PartGroupGrid_ItemUpdated" OnItemDeleted="PartGroupGrid_ItemDeleted"
                OnInsertCommand="PartGroupGrid_InsertCommand" OnUpdateCommand="PartGroupGrid_UpdateCommand" OnDeleteCommand="PartGroupGrid_DeleteCommand"
                OnItemCreated="PartGroupGrid_ItemCreated" GridLines="None" Width="70%" >
                <PagerStyle Mode="NumericPages"></PagerStyle>
                <MasterTableView DataSourceID="SqlDataSource_PartGroup" DataKeyNames="Part_Group_ID" AllowMultiColumnSorting="True" Width="100%" CommandItemDisplay="Top" Name="PartGroups">
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="Part_Group_Vendor_ID" DataSourceID="SqlDataSource_Suppliers" Width="100%" runat="server" CommandItemDisplay="Top" Name="Vendors" AllowAutomaticUpdates="false" AllowAutomaticInserts="false">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="Part_Group_ID" MasterKeyField="Part_Group_ID"></telerik:GridRelationFields>
                            </ParentTableRelation>

0
Attila Antal
Telerik team
answered on 25 Jan 2018, 03:07 PM
Hi Brahmaiah,

I can see that the automatic operations for Insert/Update are turned off, therefore, the issue might be coming somewhere from the code behind.

One possible reason the edit form stays open, could be that e.KeepInEditMode property is set to True within the ItemUpdated event handler. Another one could be, if you're canceling the event inside the ItemCommand, or UpdateCommand event handlers. Take a look at the code behind and see if these properties are set anywhere.

If the issue remains, I would suggest you try to isolate the issue in a very basic project, open a formal support ticket and send the project to our support team where they will take a look and investigate this for you. Attached I am sending a basic sample you can modify in order to replicate the problem and send it back to us for investigation.

Kind regards,
Attila Antal
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Brahmaiah
Top achievements
Rank 1
Attila Antal
Telerik team
Share this question
or