PDA

View Full Version : numberField disabled in a "Ext.PagingToolbar"



Tremal
14 Feb 2013, 1:38 AM
Hi!

I'm using the Ext.PagingToolbar into a "Ext.grid.Panel". An extract of the code is below (I've deleted the columns parameter and listeners):



Ext.create('Ext.grid.Panel',
{store: store1,
disableSelection: false,
bbar: Ext.create('Ext.PagingToolbar',
{store: store1}
),
renderTo: 'grid1'
}
);


And in another place I have:



Ext.create('Ext.grid.Panel',
{store: store2,
selModel: canEdit ? sm : '',
bbar: Ext.create('Ext.PagingToolbar',
{store: store2}
),
renderTo: 'div2'
}
);


The problem is the next: in the first Panel, the numberField is editable, but in the second I can't write a pagenumber to go at the desired page of my Table.

When I see the HTML code generated, the second toolbar has the INPUT tag with the parameter "disabled" active, but I don't know from where it comes.

Thanks!

sword-it
14 Feb 2013, 3:01 AM
Hi Tresmal,

If your grid have no record then all toolbar components (next button, back button, page number textfield) will be disabled.