1. #11
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,555
    Vote Rating
    60
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    I don't think there's a bug in the Event object. It seems to return an HtmlElement, not an Ext.Element.

    It doess need documenting though. I'll have a go when I have time to study the code enough.

  2. #12
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default

    Hi @Animal, one last (unrelated) question.

    I've noticed in your code samples elsewhere that you also use Ext.apply() on an object's prototype, vs Ext.override() on an object's instance in your code sample above. Is this merely personal preference, or is there some reason behind it?

  3. #13
    Sencha User
    Join Date
    Mar 2007
    Posts
    464
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default

    http://extjs.com/deploy/ext/docs/out...html#getTarget

    Code:
    public function getTarget([String selector], [Number/String/HTMLElement/Element maxDepth], [Boolean returnEl])
    
        * returnEl : Boolean
          (optional) True to return a Ext.Element object instead of DOM node

  4. #14
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    18
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default

    Joris, false is not a valid selector. If you want an Ext.Element you will need to pass a valid selector. If you don't need the selector then like Animal posted, wrap it in an Ext.get or Ext.fly.
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

  5. #15
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,555
    Vote Rating
    60
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    Quote Originally Posted by mystix View Post
    Hi @Animal, one last (unrelated) question.

    I've noticed in your code samples elsewhere that you also use Ext.apply() on an object's prototype, vs Ext.override() on an object's instance in your code sample above. Is this merely personal preference, or is there some reason behind it?
    There's no difference. Ext.override puts the properties from the 2nd arg into the 1st arg's prototype. Ext.apply puts the properties from the 2nd arg into the 1st arg, so you just specify ".prototype" on the 1st arg.

  6. #16
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default

    Quote Originally Posted by Animal View Post
    There's no difference. Ext.override puts the properties from the 2nd arg into the 1st arg's prototype. Ext.apply puts the properties from the 2nd arg into the 1st arg, so you just specify ".prototype" on the 1st arg.
    eureka! thanks for the tip

  7. #17
    Ext User
    Join Date
    Aug 2010
    Location
    Chennai,India
    Posts
    19
    Vote Rating
    0
    Manivel is on a distinguished road

      0  

    Default

    Hi

    i wanna one help. i have a grid with summary and pagination. My question is how to show the summary for all rows while pagination. If i change the next page of grid the summary shows only for that page. but i want summary for all rows.
    Regards & Thank You
    P. Manivel

  8. #18
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    104
    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 Condor has much to be proud of

      0  

    Default

    Why are you posting this question is this really old thread?

    ps. You would have to use a remote summary (e.g. your server returns the summary values and the grid summary shows that info instead of calculating it itself).

  9. #19
    Ext User
    Join Date
    Aug 2010
    Location
    Chennai,India
    Posts
    19
    Vote Rating
    0
    Manivel is on a distinguished road

      0  

    Default

    please give the code
    Regards & Thank You
    P. Manivel

  10. #20
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    104
    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 Condor has much to be proud of

      0  

    Default

    This is not an Ext 1.x question and it has nothing to do with this thread. Please start a new thread in the correct forum!