1. #1
    Sencha Premium Member
    Join Date
    Jan 2011
    Location
    Pune,India
    Posts
    33
    Vote Rating
    0
    Sandeesh is on a distinguished road

      0  

    Default Related to Ext.PagingToolbar

    Related to Ext.PagingToolbar


    Hi,

    I have to add 2 buttons (one on the left side of pagination icons (Next-Prev) and the other to the right side of it.)
    I have added these 2 buttons using the "items" property in PagingToolbar.
    bbar: new Ext.PagingToolbar({
    pageSize: 10,
    storetore,
    displayInfo: true,
    prependButtons:true,
    items:[
    {
    pressed: true,
    enableToggle:true,
    text: 'Prev 2000',
    toggleHandler: function(btn, pressed){

    }
    },{
    pressed: true,
    enableToggle:true,
    text: 'Next 2000',
    toggleHandler: function(btn, pressed){

    }
    }]
    });

    Since I have use prependButton : true , I get both the buttons on left side .
    I want the 1st button on left side and the second button on right side.
    How do I implement this???

    Thanks in advance..

  2. #2
    Sencha User
    Join Date
    Jul 2009
    Posts
    88
    Vote Rating
    1
    Ash2009 is on a distinguished road

      0  

    Default


    u can add a '->' in between the 2 button items,check out Ext.Toolbar.Fill in api.
    like this ...
    items:[{...}, '->',{...}]