0
したがって、私は剣道を持つグリッドがあり、1580要素を表示する必要があります。しかし、デフォルトでは10だけしか表示されず、ユーザーは彼が望む数を選択する必要があります。 1580でデフォルト値を設定するには?私は成功なしでそれを探しました。10個以上の要素を表示するグリッド内の要素を表示する既定のページサイズを変更する方法
私はここにコードを置く:
@(Html.Kendo().Grid<DisplayGridResultatsPrestations>
()
.Name("GridListeIdcc")
.Columns(columns =>
{
columns.Bound(c => c.CategoriePrestation);
columns.Bound(c => c.DesignationPrestation);
columns.Bound(c => c.ValeurPreconisee);
columns.Bound(c => c.ValeurProposee);
columns.Bound(c => c.DesignationResultat);
})
.Filterable()
.Selectable(selectable => selectable.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row))
.Pageable(builder => builder.PageSizes(new[] { 1580, 1580 }))
.DataSource(datasource => datasource
.Ajax()
あなたは '.PageSize(1580)'を意味しますか? –
これは私の1580年の結果を一度表示しますか?私はこれを置くことができないので、エラーが 'int'から 'int []'に変換できません –
これはあなたを助けるかもしれませんhttp://www.telerik.com/forums/is-there-a-way-to -change-the-pagesize-dinamically –