EasyUI Forum
April 28, 2024, 10:05:01 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid  (Read 12992 times)
peter
Newbie
*
Posts: 10


View Profile
« on: June 21, 2012, 12:43:24 AM »

I have a datagrid where I am setting a number of parameters.
    $('#myId').datagrid({ 
        url:          '/myUrl', 
   pagination:   true,
   pageSize:     39,
   striped:      true,
...
When I set pageSize to anything but a multiple of 10,  the parameter 'rows' that is sent to the server is always 10.

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 21, 2012, 01:19:01 AM »

It is not a bug, the legal page size must be chosen from page list. For example, you define a page list [10,20,30], assigning pageSize to 39 is not valid but assigning pageSize to 10 or 20 is valid. The pageSize will be corrected according to the page list when the datagrid is created.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!