jQuery UI Widgets Forums Grid pagesize in "pagesize changed" event

This topic contains 2 replies, has 2 voices, and was last updated by  nyorozo 10 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • pagesize in "pagesize changed" event #56327

    nyorozo
    Participant

    Hello,

    I use Grid with pagesizeoptions includeing text like ‘ALL’ as below.
    In this case, I noticed libary set 10 for args.pagesize.
    Is this right specification?

    If possible, I’d like you to set the same value as setting in pagesizeoptions.

    ================================

    	$("#RS_Status_List").jqxGrid( {
     	 	theme : "xxxx",
    ......
     	 	pagesizeoptions : ['17', '50', '1000', 'All'],
    ......
    	});
    	$("#RS_Status_List").on("pagesizechanged", function(event)
    	{
    		var args = event.args;
    		var pagesize = args.pagesize;
    		
    		if (pagesize == 10) $("#RS_Status_List").jqxGrid( {pagesize: 1000} );
    	});
    pagesize in "pagesize changed" event #56328

    Dimitar
    Participant

    Hello nyorozo,

    Unfortunately, only numeric values are supported for pagesizeoptions. 10 is the default pagesize and that is why you get it when you click on an unsupported option.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    pagesize in "pagesize changed" event #56399

    nyorozo
    Participant

    Hi Dimitar,

    Thank you for your answer.
    I’d like you to consider to set -1 instead of 10 because it’s easier to identify clicking on an unsupported otion.

    Regards,
    Naoto

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.