EasyUI Forum

General Category => Bug Report => Topic started by: peter on June 21, 2012, 12:43:24 AM



Title: Datagrid
Post by: peter 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.



Title: Re: Datagrid
Post by: stworthy 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.