-
13 Feb 2009 1:14 AM #11
Re: Scrollbar to the ExtJS panel ?
Re: Scrollbar to the ExtJS panel ?
Hi,
Sorry to disturb you again, I have same kind of requirement for the grid, but this time grid is in a panel and that panel is called through a card layout.
if possible please help me out on this. Actually i need to develop a component that will change the scroll bars of the application as per the theme ie, grid, panel, tree, etc. both horizontal and vertical scroll bars.
regards,
Sanjay
-
13 Feb 2009 1:16 AM #12
No. Why?
Put the Grid directly into the card layout.
Why would you wrap it up in a Panel?Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
13 Feb 2009 1:31 AM #13
Ok, i did it the same way u suggested.
I put the code in the gridpanel like below
initComponent : function(){
....
....
....
this.on('render', function(c){
CSBfleXcroll.defer(1, window, [c.body.dom]);
});
...
....
}
but still no effect.
-
13 Feb 2009 1:40 AM #14
What? What is that suposed to mean to anyone? Is it a joke?
Put the Grid as a child item of the card layout!Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
13 Feb 2009 1:43 AM #15Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
A GridPanel doesn't have a scrollbar on the body element. It's on the grid.getView().scroller element.
-
13 Feb 2009 2:07 AM #16
RE: Scrollbar to the ExtJS panel ?
RE: Scrollbar to the ExtJS panel ?
I dont have much knowledge on ExtJs lib, btw thanks below code worked
CSBfleXcroll.defer(1, window, [c.getView().scroller.dom]);
-
26 Feb 2009 6:00 AM #17
what if i have dataview instead of gridpanel and which listener should i use for that, currently i am using it like the below.
listeners: {
load: function(c){
CSBfleXcroll.defer(1, window, [c.body.dom]);
}
}
please help.
-
26 Feb 2009 8:09 AM #18Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
In a DataView the main element scrolls, e.g.
Code:CSBfleXcroll.defer(1, window, [dataview.el.dom]);
-
27 Feb 2009 2:06 AM #19
thanks guys for every thing, my example is working now and would like to post my code online to help others.
-sanjay
-
2 Apr 2009 2:21 AM #20
Thanks for sharing!
But :-) are you sure that your example's working in IE? I'm testing in IE7 right now, and I do not get displayed anything at all... error message tells me (translated from German):
"Identifier, String or Number expected" in line 21, char 5 (see attached screenshot)
Did I mess it up? Did you test it in IE(7)? Thanks, Crusy


Reply With Quote