Jump to content

Scroll in DBGrid


Mediv07

Recommended Posts

Вы в начале правильно объяснили, я понял Вас, я просто подумал, что если "горизонтальную " прокрутку переместить под "grand total", то при появлении "вертикальной" полосы прокрутки "grand total" может "уйти", т.е. может остаться невидимым, Хотя не знаю, может быть можно это как-то реализовать... 

 

You correctly explained, I understand you, I just thought, if "horizontal" scroll to move under the "grand total", then when visible a "vertical" scroll bar "grand total" can "get away", ie may remain invisible, Though I do not know, maybe it is possible to somehow implement ...

 

Best regards.
Link to comment
Share on other sites

Here is a solution that can be useful to someone.

 

If there is another solution, share.


// Sync
UniSession.AddJS(AccOborotSvcDBGrid.JSName+'.body.dom.parentElement.getElementsByClassName("x-docked-summary")[0].addEventListener("scroll", function (e) {'
+AccOborotSvcDBGrid.JSName+'.body.dom.firstChild.scrollLeft = this.scrollLeft;}, false)');

// Hide Scroll
UniSession.AddJS(AccOborotSvcDBGrid.JSName + '.body.dom.firstChild.style.overflowX = "hidden"');

//
UniSession.AddJS(AccOborotSvcDBGrid.JSName + '.body.dom.parentElement.getElementsByClassName("x-docked-summary")[0].style.overflowX = "scroll"');

post-1284-0-66489000-1417093487_thumb.png

Link to comment
Share on other sites

I think you need some event handlers in the grid to insert a about such code:
 
(I mean you need to use about such code, but this code is not optimal)
 
.......

 

function columnresize(ct, column, width, eOpts)
{
  Ext.get(this.id).down('.x-docked-summary').dom.scrollLeft = Ext.getCmp(this.id).body.dom.firstChild.scrollLeft
}
function resize(sender, width, height, oldWidth, oldHeight, eOpts)
{
  Ext.get(this.id).down('.x-docked-summary').dom.scrollLeft = Ext.getCmp(this.id).body.dom.firstChild.scrollLeft
}

......

 

 

Link to comment
Share on other sites

  • 7 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...