1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    2
    Vote Rating
    0
    gissly is on a distinguished road

      0  

    Default Unanswered: Noobie Question: How can i access methods of the parent Class

    Unanswered: Noobie Question: How can i access methods of the parent Class


    Hey there,

    i got a small Problem. I got a Gridview Panel, where i can manage my support tickets.


    So i got a "Close Ticket" Button where a handler is bound (handler: this.onCloseTicket) but in that handler a have to call my refreshTickets method from my class, when the ajax request is successful (-> in the success event of the Ext.Ajax.request) but it does not work when i call this.refreshTickets();

    How can i call that method from there?

    I'm sure someone can help me.. Im rather new to Ext.Js.

    Best regards,

    Chris

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,627
    Answers
    612
    Vote Rating
    399
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      1  

    Default


    Have you set the scope in your button to see this correctly?
    If you use call console.log(this) right before you call refreshTickets, and look in the console ..
    what is 'this' evaluating to?

    Scott.

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    2
    Vote Rating
    0
    gissly is on a distinguished road

      0  

    Default


    Ah thanks Scott!

    Thats scope thingy solved some more riddles

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar