RadGrid Edit form not closing on Insert, Update or Cancel

4 posts, 0 answers
  1. John
    John avatar
    2 posts
    Member since:
    Oct 2013

    Posted 23 May 2016 Link to this post

    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.

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 25 May 2016 Link to this post

    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.
  3. Brahmaiah
    Brahmaiah avatar
    1 posts
    Member since:
    Oct 2017

    Posted 22 Jan 2018 in reply to Pavlina Link to this post

    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>

  4. Attila Antal
    Admin
    Attila Antal avatar
    425 posts

    Posted 25 Jan 2018 Link to this post

    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.
Back to Top