PDA

View Full Version : Observable listeners in mvc



omari_yousef
25 Apr 2012, 4:05 AM
hello every body >>> i build an class and this class extends Observable
and i name the alias
alias : 'widget.GridDataSource',


and i build panel in this class as one of a lot items
then i try to make an event to this panel

i write in the controller
'GridDataSource panel ':{
afterrender:this.afterrnderfunction
}
..
.
.
.
.
afterrnderfunction::function(){
alert(';sssss');
}


but nothing work dose the observble class has special thing to do or i must write the event in other way??????????????

mitchellsimoens
1 May 2012, 7:02 AM
Observable is not a component therefore this.control in a controller cannot listen for it.