Skip to content

Commit 255634e

Browse files
Update grid-page-size-all-in-asp-core.md
1 parent e5c7d25 commit 255634e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/knowledge-base/grid-page-size-all-in-asp-core.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ After the document is ready, dynamically add the option for the **All** page siz
3535
$(function () {
3636
3737
var grid = $('#grid').data('kendoGrid');
38-
//this line will give the undefined when it try to find the dropdownlist.
39-
//var pageSizeDropDownList = grid.wrapper.children(".k-grid-pager").find("select").data("kendoDropDownList");
40-
41-
//the alternate code this below line.
4238
var pageSizeDropDownList= grid.wrapper.find('.k-pager-sizes').find('[data-role="dropdownlist"]').data('kendoDropDownList');
4339
console.log(pageSizeDropDownList)
4440
pageSizeDropDownList.dataSource.add({text:"All", value:'all'})

0 commit comments

Comments
 (0)