1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    31
    Vote Rating
    0
    yopiyop is on a distinguished road

      0  

    Default grid : Paging Toolbar button inactive

    grid : Paging Toolbar button inactive


    did i miss something ? click on next/previous button has no effect...

    env : mozilla 1.5 , 2 ,IE6 on windows 2000.

    here is my test :
    Code:
    <html>
    <head>  
      <script></script>
      <script></script>
      <script></script>
      <script></script>
      <script></script>
      <script></script>
      
      <script></script> 
         
      <link>
      <link> 
    </head>
    <body>   
    <div></div>
    <script>
          var Example = {
              init : function(){
              		//--------- definition des colonnes----------------------
              		var myColumns =  [  {header: "col1 avec un libellé long", width: 60, editor: new YAHOO.ext.grid.TextEditor() }
              						   ,{header: "col-2", width: 820, editor: new YAHOO.ext.grid.TextEditor() } 
    								  ];
    				var colModel = new YAHOO.ext.grid.DefaultColumnModel(myColumns); 
      			    colModel.defaultSortable = false;
                 	//--------- definition du mode de selction /edition ----------------------
      			    var selModel = new YAHOO.ext.grid.EditorAndSelectionModel(); 
      			    //--------- definition du model ----------------------
    			    var schema = { root: 'food',
    							   id: 'name',
    							   fields: ['name', 'price']
    							 };
    				var dataModel = new YAHOO.ext.grid.JSONDataModel(schema);
    				dataModel.getTotalRowCount = function(){ return 500;  } 
    	     		dataModel.initPaging('server.html', 10 );   
    				dataModel.baseParams = {'myId': 100 };
      				
      				dataModel.addListener('cellupdated', function(o ,row, col){alert('col-row:'+col+'-'+row);} );
      			    dataModel.addListener('load', selModel.selectFirstRow, selModel, true);
    				dataModel.addListener('loadexception',  function(o,mess, res){alert('exception load:' + mess);} ); 
      			      
      			    //--------- construction grille ---------------------------------------
    		        this.grid = new YAHOO.ext.grid.Grid('grid-example', dataModel, colModel,selModel );
    		        this.grid.render(); 
    	        	
                    dataModel.loadPage(1);  
    		    }    
    		} 
    		YAHOO.util.Event.on(window, 'load', Example.init, Example, true); 
    </script>
    </body>
    </html>
    with server.html response :


    Code:
    ({ 'food': [ {'name': '0 banana','price': 9}, {'name': '1 banana','price': 9}, {'name': '2 banana','price': 9}, {'name': '3 banana','price': 9}, {'name': '4 banana','price': 9}, {'name': '5 banana','price': 9}, {'name': '6 banana','price': 9}, {'name': '7 banana','price': 9}, {'name': '8 banana','price': 9}, {'name': '9 banana','price': 9}]})

    Cordialement,
    David

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Download the latest version (0.32.3.1), I uploaded it shortly after 0.32.3 to fix the broken buttons problem.

Similar Threads

  1. Refresh button on paging grid
    By spatel in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 27 Mar 2007, 7:04 AM
  2. Minor grid paging toolbar issues
    By tryanDLS in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 5 Mar 2007, 9:01 AM
  3. Does Grid.autoSize factor in paging toolbar for paged grid?
    By davida in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 28 Dec 2006, 9:47 AM
  4. Custom row renderer in paging grid causes toolbar to vanish
    By steve.neill in forum Ext 1.x: Bugs
    Replies: 3
    Last Post: 1 Dec 2006, 5:20 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi