Hi All,
I have simple ASP.NET MVC web application to fetch data from SQL DB from controller and render it to a web application using Kendo grid.
Performance before we started to use Kendo controls was fine and renders the page quickly. The issue of slow performance started only after we decided to use Kendo grid for sorting and filtering. Even the page without any kendo controls takes more time to load.
Following is the code in our CSHTML page. Any quick help will be greatly appreciated.
@using (Html.BeginForm("ReplaySelectedInboundMessages", "Home"))
{
<div id="gridContent1">
<h1>All Messages</h1>
@(Html.Kendo().Grid<VPath.MessageReplay.MvcApp.Models.LogModel>(Model)
.Name("grid")
.HtmlAttributes(new { style = "height:430px;" })
.Columns(columns =>
{
columns.Template(@<text><input class="box" id="assignChkBx"name="assignChkBx" type="checkbox" value="@item.LogID"/></text>).HeaderTemplate(@<text><input type='checkbox' id='allBox' onclick='toggleSelection()'</text>).Width(20);
columns.Bound(p => p.LogID).Template(p=> Html.ActionLink(((string)p.LogID), "MessageDetails", new { logid = p.LogID})).Width(200);
columns.Bound(p => p.ReceivePortName).Width(100);
columns.Bound(p => p.SendPortName).Width(100);
columns.Bound(p => p.loggedDate).Width(100);
columns.Bound(p => p.ControlID).Width(100);
columns.Bound(p => p.SenderID).Width(100);
columns.Bound(p => p.ReceiverID).Width(100);
columns.Bound(p => p.InterchangeID).Width(100);
columns.Bound(p => p.ReplayedCount).Width(100);
columns.Bound(p => p.RetryCount).Width(100);
columns.Bound(p => p.AckCode).Width(20);
})
.Filterable()
.Pageable()
.Sortable()
.Scrollable(src => src.Height(430))
.Resizable(resize => resize.Columns(true))
)
<br />
<br />
<input type="Submit" name="btnReplayMessage" value="Replay" title="Replay Message" \>
</div>
}
I have simple ASP.NET MVC web application to fetch data from SQL DB from controller and render it to a web application using Kendo grid.
Performance before we started to use Kendo controls was fine and renders the page quickly. The issue of slow performance started only after we decided to use Kendo grid for sorting and filtering. Even the page without any kendo controls takes more time to load.
Following is the code in our CSHTML page. Any quick help will be greatly appreciated.
@using (Html.BeginForm("ReplaySelectedInboundMessages", "Home"))
{
<div id="gridContent1">
<h1>All Messages</h1>
@(Html.Kendo().Grid<VPath.MessageReplay.MvcApp.Models.LogModel>(Model)
.Name("grid")
.HtmlAttributes(new { style = "height:430px;" })
.Columns(columns =>
{
columns.Template(@<text><input class="box" id="assignChkBx"name="assignChkBx" type="checkbox" value="@item.LogID"/></text>).HeaderTemplate(@<text><input type='checkbox' id='allBox' onclick='toggleSelection()'</text>).Width(20);
columns.Bound(p => p.LogID).Template(p=> Html.ActionLink(((string)p.LogID), "MessageDetails", new { logid = p.LogID})).Width(200);
columns.Bound(p => p.ReceivePortName).Width(100);
columns.Bound(p => p.SendPortName).Width(100);
columns.Bound(p => p.loggedDate).Width(100);
columns.Bound(p => p.ControlID).Width(100);
columns.Bound(p => p.SenderID).Width(100);
columns.Bound(p => p.ReceiverID).Width(100);
columns.Bound(p => p.InterchangeID).Width(100);
columns.Bound(p => p.ReplayedCount).Width(100);
columns.Bound(p => p.RetryCount).Width(100);
columns.Bound(p => p.AckCode).Width(20);
})
.Filterable()
.Pageable()
.Sortable()
.Scrollable(src => src.Height(430))
.Resizable(resize => resize.Columns(true))
)
<br />
<br />
<input type="Submit" name="btnReplayMessage" value="Replay" title="Replay Message" \>
</div>
}