Mediv07 Posted November 27, 2014 Share Posted November 27, 2014 Hi Farhad, I add the results in a grid, can make the results of the above scrolling? Thank you. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 27, 2014 Administrators Share Posted November 27, 2014 Scroll to right? Link to comment Share on other sites More sharing options...
Mediv07 Posted November 27, 2014 Author Share Posted November 27, 2014 Scroll to right? Yes, I want to scrolling was at the bottom, after the itogs. Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2014 Share Posted November 27, 2014 Hi Mediv07 I think it was made for vertical scrolling ... Best regards. Link to comment Share on other sites More sharing options...
Mediv07 Posted November 27, 2014 Author Share Posted November 27, 2014 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. Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2014 Share Posted November 27, 2014 Вы в начале правильно объяснили, я понял Вас, я просто подумал, что если "горизонтальную " прокрутку переместить под "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 More sharing options...
Mediv07 Posted November 27, 2014 Author Share Posted November 27, 2014 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"'); Link to comment Share on other sites More sharing options...
Mediv07 Posted November 27, 2014 Author Share Posted November 27, 2014 Пример того, что скролл остался. Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2014 Share Posted November 27, 2014 // UniSession.AddJS(AccOborotSvcDBGrid.JSName + '.body.dom.parentElement.getElementsByClassName("x-docked-summary")[0].style.overflowX = "auto"'); Link to comment Share on other sites More sharing options...
Mediv07 Posted November 27, 2014 Author Share Posted November 27, 2014 // UniSession.AddJS(AccOborotSvcDBGrid.JSName + '.body.dom.parentElement.getElementsByClassName("x-docked-summary")[0].style.overflowX = "auto"'); Add image with bug. Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2014 Share Posted November 27, 2014 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 More sharing options...
nyy216 Posted July 14, 2015 Share Posted July 14, 2015 hi everyone can you tell me how to add summany panel to the bottom of the gird ? thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now