PDA

View Full Version : [CLOSED] Can't scroll Horizontaly in GridPanel after upgrade to Version 2.2



kieron
May 14, 2013, 8:46 AM
Hi,

After Upgrading from 2.1 to 2.2, we have lost the ability to Horizontal scroll in a GridPanel.

6212



GridPanel grid = new GridPanel();
grid.ID = definition.Name;
grid.StateID = "State_" + definition.Name;
grid.Stateful = true;
grid.MultiSelect = false;
grid.ManageHeight = true;
grid.EnableColumnResize = true;
grid.EnableColumnMove = true;
grid.EnableColumnHide = true;
grid.Resizable = false;
grid.OverflowX = Overflow.Scroll;
grid.Scroll = ScrollMode.Horizontal;


Please advise

Daniil
May 14, 2013, 11:41 AM
Hi @kieron,

Likely it is a problem in layout configuration of a GridPanel's container, not of the GridPanel's settings itself.

Could you provide a full test case to reproduce the problem?

kieron
May 17, 2013, 7:56 AM
Hi,

I found the following article about the loss of horizontal bar: http://www.sencha.com/forum/showthread.php?260222-Horizontal-scrollbar-not-showing-when-upgraded-ExtJS-to-4.2

To apply this fix to Ext.net Grid Panel I changed the above code to:


GridPanel grid = new GridPanel();
grid.ID = definition.Name;
grid.StateID = "State_" + definition.Name;
grid.Stateful = true;
grid.MultiSelect = false;
//grid.ManageHeight = true;
grid.EnableColumnResize = true;
grid.EnableColumnMove = true;
grid.EnableColumnHide = true;
grid.Resizable = false;
//grid.OverflowX = Overflow.Scroll;
//grid.Scroll = ScrollMode.Horizontal;
grid.Height = definition.PixelHeight;

Daniil
May 17, 2013, 11:49 AM
Nice.

We will appreciate if you provide us with a sample to reproduce. We would, probably, report it to Sencha as a bug.