same data source, different widgets, specific page size for grid

3 posts, 0 answers
  1. Matt
    Matt avatar
    16 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2012 Link to this post

    I have a list of data that I want to use both in a grid and in a dropdownlist simultaneously. On the grid, I want it to have a pageSize of 10, but on the dropdownlist I want it to have all of the data items. 

    I don't want to specify two data sources for the same data just to get different page sizes. How would I set only the grid pageSize independent of the dataSource?

    Thanks in advance,
    Matt
  2. Matt
    Matt avatar
    16 posts
    Member since:
    Jul 2012

    Posted 16 Aug 2012 Link to this post

    Bump
  3. Kendo UI is VS 2017 Ready
  4. Alexander
    Alexander avatar
    19 posts
    Member since:
    Jun 2012

    Posted 23 Aug 2012 Link to this post

    Matt,

    Grids are configurable with a pageSize property:

    $("#grid").kendoGrid({
      dataSource: {
        data: myData
        pageSize: 50
      },
      pageable: {
        refresh: true,
        pageSizes: true
      }
    });
Back to Top