- Home
- Forum
- ASP.NET MVC
- Grid Slow render
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();
SIGN IN To post a reply.
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 |
Refer to the sample Link:- http://www.syncfusion.com/downloads/support/forum/142933/ze/Sample145862_(5)725611193
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.
- Complete Grid code example(both in server and client side).
- How many number of columns and rows you have used in the Grid.
- EjGrid without Load( means doesn’t bind data to the Grid)
- Share time take to load data with number of columns and rows.
Regards,
Vignesh Natarajan.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
TU tayfun uyrun
- Feb 26, 2019 10:07 AM UTC
- Feb 27, 2019 12:23 PM UTC