EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: yogesh on September 20, 2012, 08:18:58 AM



Title: How to get current selected page size value in datagrid
Post by: yogesh on September 20, 2012, 08:18:58 AM
is there anyway to get the current select pagesize value of the datagrid

i dont want to user onSelectPage:function(pageNumber, pageSize)

i want to check the selected list value from the out side of the datagrid control for example on click of the outside button



Title: Re: How to get current selected page size value in datagrid
Post by: stworthy on September 20, 2012, 08:34:14 PM
Calling 'options' method of datagrid to get the properties of datagrid.

Code:
var opts = $('#dg').datagrid('options');
alert(opts.pageSize);


Title: Re: How to get current selected page size value in datagrid
Post by: yogesh on September 24, 2012, 12:50:08 AM
thank you its working