-
1 Nov 2010 12:56 AM #1
Populating Textfield based on the selection of node in a tree
Populating Textfield based on the selection of node in a tree
I need to Populate a Textfield with the nodes text based on the selection of node in a tree
Below is what i tried:
Here TreeText is the id of the textfieldCode:listeners:{ click:function(node,event){ var flag= node.getId().text;var temp=Ext.getCmp('TreeText');temp.value=flag;
-
1 Nov 2010 1:20 AM #2
Issue solved.here is the code
Code:listeners:{ click:function(node,event){ var a=Ext.getCmp('TreeText'); var b= node.text; a.setValue(b); }}
Similar Threads
-
tree node selection
By tkm in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 20 Feb 2011, 2:57 AM -
Tree node selection (SAME TREE NODE, NOT JUST SELECTION CHANGED)
By FrankCA in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 16 Nov 2009, 2:02 PM -
Populating second combo based on first combo selection
By infocontroller in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 1 Sep 2009, 8:49 PM -
Populating Grid based on Tree selection...
By NoahK17 in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 13 May 2008, 12:54 PM -
Tree root node selection
By paulsk in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 15 Jan 2008, 3:05 AM


Reply With Quote