Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Tab is activated when close button clicked

  1. #11
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,607
    Vote Rating
    58
      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 User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
      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
      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
    20
      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,607
    Vote Rating
    58
      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 User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
      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
      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
    118
      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
      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
    118
      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!

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •