We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Grid Slow render

loading time takes a long time.
response time is 151 ms
2.36 seconds?

ejgrid without load 800 ms ??

Html code:

@(Html.EJ().Grid<object>("VarlikListele")
              .Datasource(datasource => datasource.Json(ViewBag.Varlik).RemoveURL("VarlikSilJson").Adaptor(AdaptorType.RemoteSaveAdaptor))
              .AllowSorting()
              .AllowPaging()
              .ClientSideEvents(e => e.ActionBegin("actionBegin"))
              .AllowResizeToFit()
              .AllowResizing()
              .ShowColumnChooser()
              .ClientSideEvents(eve => { eve.DataBound("databound").ActionComplete("actioncomplete"); })
              .PageSettings(p => { p.PageSize(50); })
              .AllowSearching()

              .ToolbarSettings(toolbar =>
              {
                  toolbar.ShowToolbar().ToolbarItems(items =>
                  {
                      items.AddTool(ToolBarItems.Search);
                      items.AddTool(ToolBarItems.ExcelExport);
                      items.AddTool(ToolBarItems.PdfExport);
                      items.AddTool(ToolBarItems.PrintGrid);

                  });
              })
              .Mappers(map => map.ExportToExcelAction(Url.Action("ExportToExcel")).ExportToPdfAction(Url.Action("ExportToPdf")).ExportToWordAction(Url.Action("ExportToWord")))
              .Columns(col =>
              {
                  bool Primary = true;
                  foreach (var item in (IEnumerable<AllClassController.Kolon>)ViewBag.Kolon)
                  {
                      if (Primary)
                      {
                          col.Field(item.KolonKod).HeaderText(item.KolonAdi).Template("#SistemID").TextAlign(TextAlign.Center).Width(75).IsPrimaryKey(true).Add();
                          Primary = false;
                      }
                      else if (item.KolonKod=="Adi")
                      {
                          col.Field(item.KolonKod).Template("#Adi").Width(200).HeaderText(item.KolonAdi).Add();
                      }
                      else
                      {
                          col.Field(item.KolonKod).Width(200).HeaderText(item.KolonAdi).Add();
                      }
                  }

              }))


cS:

         ViewBag.Varlik= ent.SP_VARLIK_LISTELE_VL(String.Join(",", LokasyonID), _DilID, _FirmaID).ToList();

1 Reply

VN Vignesh Natarajan Syncfusion Team February 27, 2019 12:23 PM UTC

Hi Tayfun, 

Thanks for contacting Syncfusion Support. 

Query#1:- loading time takes a long time.response time is 151 ms 2.36 seconds? 

From your query, we understand that you are facing issue while rendering the ejGrid. We have checked your query and we have prepared sample as per your code example but we are unable to reproduce the reported sisue at our end. Please find the time calculated for number of rows per columns from below:- 

      Loaded Data  
     Initial Rendering  
  10 Columns * 50 Rows  
        2.3ms 
  5 Columns * 50 Rows  
        1.2ms 
   

Query#2:- ejgrid without load 800 ms ?? 

We need some additional information to find the cause of the issue. Please share us the following details. 

  1. Complete Grid code example(both in server and client side).
  2. How many number of columns and rows you have used in the Grid.
  3. EjGrid without Load( means doesn’t bind data to the Grid)
  4. Share time take to load data with number of columns and rows.

Regards, 
Vignesh Natarajan. 

 


Loader.
Live Chat Icon For mobile
Up arrow icon