tag:blogger.com,1999:blog-7442072150765022610.post5013474970403264012..comments2023-11-16T23:12:55.172+05:30Comments on Hiren's Technical Blog: ExtJs 4 MVC get reference of viewsHiren Davehttp://www.blogger.com/profile/03332234242233370508noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7442072150765022610.post-36148491678534288952014-01-20T12:04:57.878+05:302014-01-20T12:04:57.878+05:30Hi,i have created reference for my view as,
refs: ...Hi,i have created reference for my view as,<br />refs: [{<br /> ref: 'panel',<br /> selector: 'details'<br /> }]<br /><br />when i call the ref as this.getPanel(), it returns 'undefined'. and my alias is,<br />alias: 'widget.details'.<br /><br />my problem is i am not able to get the reference as 'details' when i call this.getPanel(), instead i get 'undefined'/'null'Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7442072150765022610.post-2582857202266679332013-05-07T17:00:30.573+05:302013-05-07T17:00:30.573+05:30hi...Zorglub yes u can by this..
refs: [{
ref :...hi...Zorglub yes u can by this..<br /><br />refs: [{<br /> ref : 'firstGrid',<br /> selector: 'yourFirstGridParentPanelAlias sameGrid'<br />},{<br /> ref : 'secondGrid',<br /> selector: 'yourSecondGridParentPanelAlias sameGrid'<br />}]<br /><br /><br />and now you can get<br /><br />var firstGrid = this.getFirstGrid();<br />var secondGrid = this.getSecondGrid();Anonymoushttps://www.blogger.com/profile/14203781799407192480noreply@blogger.comtag:blogger.com,1999:blog-7442072150765022610.post-57071388239760772812013-02-28T14:22:50.926+05:302013-02-28T14:22:50.926+05:30I have trouble with this technic when I've got...I have trouble with this technic when I've got two instances of same view because this code : var myGrid = this.getMyGrid();<br />returns a reference to the first view but never the second.<br />Do you have a solution ?<br /><br />(Excuse me for my very bad English, I'm French !)Zorglubhttps://www.blogger.com/profile/08808945879778729631noreply@blogger.comtag:blogger.com,1999:blog-7442072150765022610.post-20210579807907878672011-10-24T15:18:37.041+05:302011-10-24T15:18:37.041+05:30thx!thx!Anonymousnoreply@blogger.com