Categories | Question details Back To List | ||
Setting # of rows per page I am using professional dhtmlxGrid with dhtmlxTabbar for paginal output. Currently, # of rows per page is set to 5rows per page, 10rows per page, 15rows per page,...,30rows per page. But I want to change this to 50,100,200,300,400,1000 rows per page. I can also change it to 100,200,300,400,500,600 rows per page to match the increment and the number of list values. Answer posted by Jessica on Jun 28, 2007 22:31 I accidentally posted the question without finishing it. I am using enablePagingWT function for the paginal output. How can I change this setting? Answer posted on Jun 29, 2007 11:52 This settings hardcoded , but you can easily update them. In dhtmlxGrid_pgn you can locate and update next string this.aToolBar.addItem(new dhtmlXSelectButtonObject("perpagenum","5,10,15,20,25,30","5"+this._WTlabels[4]+",10"+this._WTlabels[4]+",15"+this._WTlabels[4]+",20"+this._WTlabels[4]+",25"+this._WTlabels[4]+",30"+this._WTlabels[4]+"",f1,120,18,"toolbar_select")); the 5,10,15,20,25,30 - list of of possible page labels, the text after it list of labels Basically you can access the selectbox and change it values on the fly as grid.aToolBar.getItem('perpagenum').removeOption(5); grid.aToolBar.getItem('perpagenum').addOption(500,"500 per page"); Answer posted on Jun 29, 2007 15:32 Thanks, I got it! Answer posted by radyno (Support) on Dec 01, 2014 01:29 If you haven't found the needed information there and still looking for a solution, you will find the additional help checking download ajax and a href javascript void. |