0

I have a simple app that is a set of Kendo UI windows containing datagrids. As soon as its running, its a huge strain on the system and visual grinds to a halt.

Its Chrome that is having the issues regardless of the project running or not, if those pages are loaded and just doing nothing other than sitting there in the browser, the computer is extremely slow

Wondering if anyone had similar issues, how to troubleshoot / resolve.

Some sample grid code

@{
    Layout = null;
}

@(Html.Kendo().Grid<DashboardViewModel.Payment>()
    .Name(Guid.NewGuid().ToString())
    .DataSource(dataSource => dataSource
        .Ajax()
        .Sort(sort => sort.Add("paymentId").Descending())
        .Read(read => read.Action("PaymentsJson", "Dashboard"))
    )
    .Columns(columns =>
    {
        columns.Bound(c => c.paymentId).Title("Id");
        columns.Bound(c => c.business).Title("Business");
        columns.Bound(c => c.createdAt).Title("Created").Width(110).DateFormat();
        columns.Bound(c => c.coupon).Title("Coupon");
        columns.Bound(c => c.quantity).Title("Qty").Width(80).Right();
        columns.Bound(c => c.price).Title("Price").Width(100).Right().CurrencyFormat();
        columns.Bound(c => c.discount).Title("Discount").Width(100).Right().CurrencyFormat();
        columns.Bound(c => c.total).Title("Total").Width(100).Right().CurrencyFormat();
    })
    .Filterable()
    .Pageable()
    .Sortable()
    .Groupable()
)
4

1 回答 1

1

这其实和剑道一点关系都没有。感谢尼古拉斯让我质疑和孤立。

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">

我模板中的这行代码就是问题所在。我什至不确定它是如何到达那里的,但我不使用或不需要它。删除该行解决了我的问题。也许那个css与剑道中的某些东西有冲突,不确定。

于 2015-05-26T07:55:08.270 回答