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

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

2 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 14 Aug 2012, 04:50 PM
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 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 16 Aug 2012, 07:49 PM
Bump
0
Alexander
Top achievements
Rank 1
answered on 23 Aug 2012, 07:45 PM
Matt,

Grids are configurable with a pageSize property:

$("#grid").kendoGrid({
  dataSource: {
    data: myData
    pageSize: 50
  },
  pageable: {
    refresh: true,
    pageSizes: true
  }
});
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Alexander
Top achievements
Rank 1
Share this question
or