Jump to content

UniDBgrid, Paged(50), Vertical scrollbar issue


Kast2k

Recommended Posts

Dear colleagues,

Unidbgrid is paged. When switching between pages then sometimes on different pages vertical scrollbar is calculated wrong and you can see empty screen.

May be the same topic was already started but i cant find it.

Thank You.

 

ubidbg.png

Link to comment
Share on other sites

10 minutes ago, Kast2k said:

Unidbgrid is paged. When switching between pages then sometimes on different pages vertical scrollbar is calculated wrong and you can see empty screen.

May be the same topic was already started but i cant find it.

Hello,

Do you mean vertical scrollbar? Which build of UniGUI are you using?

 

Link to comment
Share on other sites

15 minutes ago, Kast2k said:

Is it bug or feature? Are You possible ti fix it or it is Sencha problem?

Can you try this approach for now?

UniDBGrid1.ClientEvents.ExtEvents [store]

function store.load(sender, records, successful, operation, eOpts)
{
    if (this.grid.getView().getEl().select('.x-scroller-spacer').elements[0]) {
        Ext.get(this.grid.getView().getEl().select('.x-scroller-spacer').elements[0]).setStyle('transform', 'translate3d(100%, 100%, 0px)');
    }
}

 

Link to comment
Share on other sites

16 minutes ago, Sherzod said:

function store.load(sender, records, successful, operation, eOpts) { if (this.grid.getView().getEl().select('.x-scroller-spacer').elements[0]) { Ext.get(this.grid.getView().getEl().select('.x-scroller-spacer').elements[0]).setStyle('transform', 'translate3d(100%, 100%, 0px)'); } }

Try this:

function store.load(sender, records, successful, operation, eOpts)
{
    this.grid.getView().getEl().select('.x-scroller-spacer').remove();
}

 

Link to comment
Share on other sites

38 minutes ago, Kast2k said:

Basically works, but NG.

If last page have no vertical scrollbar then it freezes

Also try this approach.

1. Remove the above JS codes.

2. Use CSS:

.customgrid .x-scroller-spacer {
  transform: translate3d(100%, 100%, 0px) !important;
}

3. UniDBGrid1.LayoutConfig.Cls = customgrid

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...