Skip to content

Commit 4a99015

Browse files
authored
Merge pull request #6250 from Ashishjain000/patch-1
docs: update grid-page-size-all-in-asp-core.md #6250
2 parents 8d6b9b4 + 255634e commit 4a99015

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ After the document is ready, dynamically add the option for the **All** page siz
3535
$(function () {
3636
3737
var grid = $('#grid').data('kendoGrid');
38-
39-
var pageSizeDropDownList = grid.wrapper.children(".k-grid-pager").find("select").data("kendoDropDownList");
38+
var pageSizeDropDownList= grid.wrapper.find('.k-pager-sizes').find('[data-role="dropdownlist"]').data('kendoDropDownList');
4039
console.log(pageSizeDropDownList)
4140
pageSizeDropDownList.dataSource.add({text:"All", value:'all'})
4241
pageSizeDropDownList.dataSource.sync()

0 commit comments

Comments
 (0)