Jump to content
uniGUI Discussion Forums
Sign in to follow this  
Mediv07

Scroll in DBGrid

Recommended Posts

Apparently I'm not quite correctly explained my question.
I took the demo application and reduce the width of the form, appeared to scroll.
I want to scroll was under GrandTotal, this can be done?
Thank you.

 

post-1284-0-89679300-1417085131_thumb.png

Share this post


Link to post
Share on other sites
Вы в начале правильно объяснили, я понял Вас, я просто подумал, что если "горизонтальную " прокрутку переместить под "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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
//

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

Share this post


Link to post
Share on other sites

 

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

 

 

Add image with bug.

post-1284-0-15822000-1417096930_thumb.png

Share this post


Link to post
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
}

......

 

 

Share this post


Link to post
Share on other sites

hi everyone 

 

  can you tell me how to add summany panel to the bottom of the gird ?

  thank you 

 

141604350793197.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×