Datagrid missing completely when trigger OnServerRowSelected

I have a datagrid in Asp Update Panel and set the datasource from code behind in page load. I also have OnServerRowSelected function. When I click a row, the postback is triggered but the Grid goes missing entirely from the page. 

<div id="menu1" class="tab-pane fade">
        
      <asp:UpdatePanel ID="UpdatePanel2" runat="server">
          <ContentTemplate>
              <div class="row">
                  <div class="col-md-4">
                      <h5>New Request List</h5>
                     <ej:Grid ID="Grid" CssClass="table-responsive" OnServerRowSelected="Grid_ServerRowSelected" AllowScrolling="true" Width="200" AllowResizeToFit="true" AllowResizing="true" AllowSearching="true" AllowPaging="true" AllowRowDragAndDrop="true" runat="server"  AllowSorting="true" AllowMultiSorting="true">
            
                     </ej:Grid>
                  </div>
                  <div class="col-md-4">
                      <asp:Label runat="server" ID="lbl2"></asp:Label>
                  </div>
              </div>
          </ContentTemplate>
          <Triggers>
          </Triggers>
      </asp:UpdatePanel>
    </div>

1 Reply

SE Sathyanarayanamoorthy Eswararao Syncfusion Team March 19, 2021 11:55 AM UTC

Hi Gangatharan, 

Thanks for contacting Syncfusion support. 

Query : Datagrid missing completely when trigger OnServerRowSelected 
 
We have checked your query with the provided code example. But we were unable to replicate the same issue on our side. We have prepared a sample with the given code example. Refer the below link for the sample. 


If you still face the issue, please share the below details, so that we can analyze the issue and provide the appropriate solution. 

  1. Please share the complete grid code example from the code behind and the view page.
  2. If possible, please try to replicate the issue in the attached sample.
  3. Also, please share whether you have referred the scripts using EmbeddedResources or using the script tags in the SiteMaster page.


Regards, 
Sathyanarayanamoorthy 


Loader.
Up arrow icon