Jump to content

can we add this feature to unidbgrid? (PagingToolbar) (Displaying topics 1 - 50 of 6679)


Recommended Posts

  • 5 weeks later...
Posted
Hi Farshad! 

 

Is it possible add this property? 


sender.pagingBar.displayInfo = true; //does not help. 

Thank you
Posted

While it is possible to use this approach (quick and dirty workaround)...

 

 

UniDBGrid1 -> ClientEvents -> ExtEvents add beforerender:

function beforerender(sender, eOpts)
{   
  if (sender.pagingBar) {    
    sender.pagingBar.hide();    
    sender.addDocked(
         {dock: 'bottom', 
          items: [new Ext.PagingToolbar(
                   {pageSize: sender.store.pageSize,
                    store: sender.store,
                    displayInfo: true,                      
                    emptyMsg: "No records to display"
                   })
                 ]
         });       
  }         
}

post-906-0-91320500-1399285807_thumb.png

×
×
  • Create New...