1. #11
    Sencha User
    Join Date
    Aug 2008
    Posts
    27
    Vote Rating
    0
    sanjaybh is on a distinguished road

      0  

    Default 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

  2. #12
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    No. Why?

    Put the Grid directly into the card layout.

    Why would you wrap it up in a Panel?

  3. #13
    Sencha User
    Join Date
    Aug 2008
    Posts
    27
    Vote Rating
    0
    sanjaybh is on a distinguished road

      0  

    Default


    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.

  4. #14
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    What? What is that suposed to mean to anyone? Is it a joke?

    Put the Grid as a child item of the card layout!

  5. #15
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    A GridPanel doesn't have a scrollbar on the body element. It's on the grid.getView().scroller element.

  6. #16
    Sencha User
    Join Date
    Aug 2008
    Posts
    27
    Vote Rating
    0
    sanjaybh is on a distinguished road

      0  

    Default 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]);

  7. #17
    Sencha User
    Join Date
    Aug 2008
    Posts
    27
    Vote Rating
    0
    sanjaybh is on a distinguished road

      0  

    Default


    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.

  8. #18
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    In a DataView the main element scrolls, e.g.
    Code:
    CSBfleXcroll.defer(1, window, [dataview.el.dom]);

  9. #19
    Sencha User
    Join Date
    Aug 2008
    Posts
    27
    Vote Rating
    0
    sanjaybh is on a distinguished road

      0  

    Default


    thanks guys for every thing, my example is working now and would like to post my code online to help others.


    -sanjay

  10. #20
    Ext User
    Join Date
    Apr 2009
    Posts
    6
    Vote Rating
    0
    Crusy is on a distinguished road

      0  

    Default


    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
    Attached Images