Page 11 of 17 FirstFirst ... 910111213 ... LastLast
Results 101 to 110 of 165

Thread: Ext.ux.tree.RemoteTreePanel

  1. #101
    Ext JS Premium Member cchain's Avatar
    Join Date
    May 2009
    Location
    San Diego, CA
    Posts
    34
    Vote Rating
    3
      0  

    Default

    Got it. New day, new perspective.

    Thanks for pointing me back to the docs Saki, the answer was there.

    I added:

    Code:
         ,editorConfig:{maxWidth:792}
    to the tree config, and it works great.

    Any suggestions for the form I need to build that I mentioned in my initial post?

  2. #102
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Listen to selectionchange event and fill in the form from the listener.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  3. #103
    Ext JS Premium Member cchain's Avatar
    Join Date
    May 2009
    Location
    San Diego, CA
    Posts
    34
    Vote Rating
    3
      0  

    Default

    This is working for me now:

    Code:
    // 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'
            });
    });
    Is there a particular reason I should use selectionchange as opposed to click?

    I tried replacing click with selectionchange in the code above, but it didn't work...

  4. #104
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    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

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  5. #105
    Ext JS Premium Member cchain's Avatar
    Join Date
    May 2009
    Location
    San Diego, CA
    Posts
    34
    Vote Rating
    3
      0  

    Thumbs up

    Using code I found in remoteTreePanel.js, I modified the code to this:

    Code:
    // 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'
                });
            }
        }
    });
    Seems to work just fine. Hopefully someone else can benefit from this... often times, I just need a code example to see how to apply the suggestions provided.

    Saki, thanks for your help!

  6. #106
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Thank you for sharing that - can be useful for others.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  7. #107
    Ext JS Premium Member cchain's Avatar
    Join Date
    May 2009
    Location
    San Diego, CA
    Posts
    34
    Vote Rating
    3
      0  

    Question setEditable()?

    I need the ability to programmatically set the editable property, ideally something like setEditable(false).

    Any suggestions how I could modify to the code to add this method?

  8. #108
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Setting tree.editable = false should be enough.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  9. #109
    Ext JS Premium Member cchain's Avatar
    Join Date
    May 2009
    Location
    San Diego, CA
    Posts
    34
    Vote Rating
    3
      0  

    Red face wipeEggFromFace=true;

    ...and of course, it works. Thanks again for the direction.

  10. #110
    Ext User
    Join Date
    Dec 2008
    Posts
    108
    Vote Rating
    0
      0  

    Default window form for onAppendChild

    Hi jsakalos, hi everyone

    I wanted to have a form to appear everytime the Insertion of node is triggered (for both append and insert). That form would have a textbox, a lookup button, a resulting grid, an OK and close button.
    It will then search for the either ID or the person name from a database.

    After a selection have been made it would return the selected ID and the person name back to the RTP then continue with the onAppendChild function.

    how could I accomplished this? Thank you.

Page 11 of 17 FirstFirst ... 910111213 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •