小编FIN*_*ide的帖子

如何更改Kendo UI中网格页面大小的默认值?

我是Kendo UI的新手.我有我的代码如下.

@(Html.Kendo().Grid<ETS.Model.CompanyList>()
    .Name("grid")
    .Columns(columns =>
    {
        columns.Bound(c => c.CompanyID).Title("Name").Template(@<text>@Html.ActionLink(@item.Name, "Company", "Companies", new { @id = @item.CompanyID }, new { @style = "color:black; text-decoration: none;" })</text>);
        columns.Bound(p => p.City).Title("Billing City");
        columns.Bound(p => p.SalesRep).Title("Sales Rep");
        columns.Bound(p => p.Phone).Title("Company Name");
    })
    .Pageable(pageable => pageable
         .PageSizes(true)
         .ButtonCount(5)
         .Refresh(true)
    )
    .Sortable()                       
    .HtmlAttributes(new { style = "height: auto;" })
    .BindTo(Model.Companies)
)
Run Code Online (Sandbox Code Playgroud)

默认情况下,网格上显示5个项目.有什么办法可以将默认值更改为20吗?

telerik kendo-ui

2
推荐指数
1
解决办法
8446
查看次数

对PWA清单的更改不适用

我无法将对Progressive Web App清单所做的更新应用到其中。更新内容可以正常工作,但是如果我更改清单中的某些内容(例如background_color),则启动屏幕的颜色将不会更改。我已经监视了我的服务器,以确保确实获取了manifest.json。重新启动手机也不会应用更改,唯一的方法似乎是卸载PWA并重新添加到主屏幕。

在桌面上,chrome开发人员工具显示清单文件已正确提取,并且可以在开发工具中看到更改。这是预期的行为吗?在安装PWA之后,是否有办法使清单更改适用?

html5 web progressive-web-apps

2
推荐指数
1
解决办法
1263
查看次数

标签 统计

html5 ×1

kendo-ui ×1

progressive-web-apps ×1

telerik ×1

web ×1