1. #1
    Ext User
    Join Date
    Sep 2010
    Posts
    13
    Vote Rating
    0
    pete7au is on a distinguished road

      0  

    Default TreePanel Node Checked ... how to turn on/off programmatically?

    TreePanel Node Checked ... how to turn on/off programmatically?


    Hi,

    Hoping there is an easy answer to this one ... can set 'checked' on a node at construction but not programmatically at runtime? Simple test case / example below ...
    Code:
    <html>
    <head>
    	<title>Test</title>
    	<link rel="stylesheet" type="text/css" href="ext-3.2.1/resources/css/ext-all.css" />
    	<script type="text/javascript" src="ext-3.2.1/adapter/ext/ext-base.js"></script> 
    	<script type="text/javascript" src="ext-3.2.1/ext-all-debug.js"></script>
    	<script type="text/javascript">
    	Ext.onReady(function(){
    		var tree = new Ext.tree.TreePanel({
    			renderTo:'Test',
    			title: 'Test',
    			useArrows:true,
    			rootVisible: true,
    			root: {
    				text: 'Root',
    				children:
    				[
    					{
    						text:'Child 1',
    						leaf: true,
    						//checked: false
    					}
    				]
    			}
    		});
    
    		tree.getRootNode().expand(true);
    		tree.getRootNode().firstChild.attributes.checked = false;
    	});
    	</script>
    </head>
    <body>
    <div id="Test"></div>
    </body>
    </html>

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    9
    Vote Rating
    0
    rockskull is on a distinguished road

      0  

    Default


    I've been searching for this all day and haven't came up with a solution.

    It's not possible that a simple thing like this one is so difficult to achieve.

Similar Threads

  1. Simulate TreeNode click in TreePanel programmatically?
    By wgpubs in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 2 Jul 2014, 11:37 AM
  2. Need to reload single treepanel node, and treepanel node checkbox error
    By sgdevteam in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 10 Mar 2010, 5:46 PM
  3. checkbox tree can not get checked node
    By azheng in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 22 Dec 2009, 1:09 AM
  4. Moving a node programmatically
    By lightsurgeon in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 8 Sep 2008, 7:44 AM
  5. select node programmatically.
    By xerifa in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 26 May 2008, 8:48 PM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi