Grid Persistence and Update Panels failing

I have a grid in an update panel....if I dont have 'OnUnload="UpdatePanel_Unload"' in my update panel, i get an error ' Cannot unregister UpdatePanel with ID 'userPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.'

If i do have that action added, the panel enable persistence feature does not work. If i remove the update panel all together, it works but the entire page refreshes. I want to be able to update fields in the update panel w/o having to refresh the field while keeping persistence on the grid. Attached is my aspx code snippet.

The on row selected hits the db to retreive information and populate the info in the row below the grid....the button then updates the db with whats in the text boxes and should refresh the grid data.

Attachment: snippet.aspx_70329851.zip

1 Reply

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team August 31, 2018 10:17 AM UTC

Hi Matthew,  
 
Thanks for contacting Syncfusion Support.  
 
While placing the Persistence enabled Grid within the UpdatePanel, we could see the Grid properties were refreshed and rendered with default propertied on the new tab. To overcome this problem, we suggest to use the set the Grid to PostBackTrigger. 
 
<asp:UpdatePanel ID="updatepnl" runat="server"> 
             <ContentTemplate> 
             <ej:Grid ID="FlatGrid" runat="server" AllowSorting="True" AllowPaging="True" AllowGrouping="true" EnablePersistence="true" IsResponsive="true"> 
              <Columns> 
                <ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="True" TextAlign="Right" Width="75" /> 
                 
               </Columns> 
           </ej:Grid> 
             
         </ContentTemplate> 
              <Triggers> 
              <asp:PostBackTrigger controlid="FlatGrid"/> 
             </Triggers> 
      </asp:UpdatePanel> 
 
 
 
Your attachment doesn’t gives the sample but it redirects us to different page. So, kindly reverify the attachment and provide the details as follows, if the issue still persists.  
 
  1. Complete code example of the Grid
  2. Video demo or screenshot with the replication procedure
 
Regards,  
Seeni Sakthi Kumar S. 


Loader.
Up arrow icon