View Full Version : Noobie Question: How can i access methods of the parent Class

24 Sep 2012, 5:35 AM
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,


24 Sep 2012, 7:12 AM
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?


25 Sep 2012, 12:08 AM
Ah thanks Scott!

Thats scope thingy solved some more riddles :D