This is a migrated thread and some comments may be shown as answers.

Values of pageable is not defined.

1 Answer 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Enrique
Top achievements
Rank 1
Enrique asked on 01 Apr 2021, 09:08 PM
"grid.options.pageable" never contains all values. In my case, I am looking for the values of "numeric" and "previousNext".

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 05 Apr 2021, 02:21 PM

Hi Enrique,

The "pageable" property of the Kendo UI Grid represents the pager configuration and it contains only the attributes with non-default values. "pageable.numeric" and "pageable.previousNext" are bool attributes, which are enabled by default in the grid's configuration. If they are added as attributes to the "pageable" property with value "false", then they will appear in the object, returned by "grid.options.pageable". 

In the example below, the attributes "Input", "Numeric", "PreviousNext" and "Refresh" are set with their non-default values and they are available in "pageable" property:

 

@(Html.Kendo().Grid<Model>()
      .Name("Grid")
      .Columns(columns => {...})
      .Pageable(pager =>
      { 
          pager.Input(true);
          pager.Numeric(false);
          pager.PreviousNext(false);
          pager.Refresh(true);
      })
      ...
)

 

Let me know if you have any other questions.

 

Regards, Mihaela Lukanova Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Enrique
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or