|
|||||||
![]() |
|
|
Thread Tools |
|
#101
|
||||
|
||||
|
Got it. New day, new perspective.
Thanks for pointing me back to the docs Saki, the answer was there. I added: ,editorConfig:{maxWidth:792}
Any suggestions for the form I need to build that I mentioned in my initial post? |
|
#102
|
||||
|
||||
|
Listen to selectionchange event and fill in the form from the listener.
__________________
Jozef Sakalos, aka Saki A lot of valuable info at: Saki's Extensions and Plugins Saki's Extensions and Plugins Docs Saki's Examples, Latest: Grid in Card Layout Saki's Blog, Featured: Writing a Big Application in Ext, Latest: What the hell is mon and mun? |
|
#103
|
||||
|
||||
|
This is working for me now:
// tree node select listener
nav.tree.on('click',function(node){
nav.form.load({
params:{cmd:'getNodeDetail',id:node.id}
,url:'content/editors/nav/qry_navEditor.cfm'
});
});
I tried replacing click with selectionchange in the code above, but it didn't work... |
|
#104
|
||||
|
||||
|
Click fires everytime you click, selectionchange fires only when selection changes. BTW, selectionchange is event of SelectionModel not of TreePanel - that is most likely the reason why it didn't work for you.
__________________
Jozef Sakalos, aka Saki A lot of valuable info at: Saki's Extensions and Plugins Saki's Extensions and Plugins Docs Saki's Examples, Latest: Grid in Card Layout Saki's Blog, Featured: Writing a Big Application in Ext, Latest: What the hell is mon and mun? |
|
#105
|
||||
|
||||
|
Using code I found in remoteTreePanel.js, I modified the code to this:
// tree node select listener
voa.tree.getSelectionModel().on({
selectionchange:{
scope:this, fn:function(selModel, node){
accred.form.load({
params:{cmd:'getNodeDetail',id:node.id}
,url:'content/accred/qry_accredform.cfm'
});
}
}
});
Saki, thanks for your help! |
|
#106
|
||||
|
||||
|
Thank you for sharing that - can be useful for others.
__________________
Jozef Sakalos, aka Saki A lot of valuable info at: Saki's Extensions and Plugins Saki's Extensions and Plugins Docs Saki's Examples, Latest: Grid in Card Layout Saki's Blog, Featured: Writing a Big Application in Ext, Latest: What the hell is mon and mun? |
![]() |
| Thread Tools | |
|
|