<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi wangsom,<br>
<br>
you can try to use a command like this (works for the given GeoExt
example): <br>
<tt><span class="Apple-style-span" style="color: rgb(0, 0, 0);
font-family: 'dejavu sans mono',monospace; font-size: 11px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: pre-wrap;
widows: 2; word-spacing: 0px; background-color: rgb(255, 255,
255);"></span></tt><br>
<span class="Apple-style-span" style="color: rgb(0, 0, 0);
font-family: 'dejavu sans mono',monospace; font-size: 11px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: pre-wrap;
widows: 2; word-spacing: 0px; background-color: rgb(255, 255,
255);">tree.getRootNode().lastChild.childNodes[0].setText('TASMANIA
ROADS');</span><br>
<br>
in your real life application you probably have to find your wanted
node (here 'lastChild'). Therfore you can use the 'findChild' method
[1] on the root node.<br>
<br>
Best regards,<br>
Chris<br>
<br>
[1] <a
href="http://docs.sencha.com/ext-js/3-4/#%21/api/Ext.tree.TreeNode-method-findChild">http://docs.sencha.com/ext-js/3-4/#!/api/Ext.tree.TreeNode-method-findChild</a><br>
<br>
<tt><span class="Apple-style-span" style="color: rgb(0, 0, 0);
font-family: 'dejavu sans mono',monospace; font-size: 11px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: pre-wrap;
widows: 2; word-spacing: 0px; background-color: rgb(255, 255,
255);"></span></tt><br>
--<br>
<div class="moz-signature">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
#signature {
color: #333 !important;
font-family: monospace;
                        font-size: 12px;
padding: 10px;
line-height: 1.5em;
}
#highlight-container {
padding: 5px;
width: 450px;
margin: 30px 0;
border-width: 0px 0 0px 0;
border-right-width: 0;
border-left-width: 0;
border-style: dotted;
border-color: #333;
}
#signature a,
#signature a:link,
#signature a:visited,
#signature a:hover,
#signature a:active {
color: darkblue !important;
}
#signature address {
font-style: normal;
}
#col-container {
width: 550px;
}
#col-1 {
width: 180px; float: left;
}
#col-2 {
width: 320px; float: left;
}
#col-clear {
clear: both; padding-top: 30px;
}
#signature img {
margin-top:10px;
}
#col-container p,
#col-container address {
margin: 4px 0 0 0;
}
#signature .no-margin {
margin: 0;
}
#highlight {
font-weight: bold;
}
</style>
<div id="signature">
<div id="col-container">
<div id="highlight"> BITTE BEACHTEN SIE UNSERE NEUE ADRESSE!<br>
<br>
PÜTZCHENS CHAUSSEE 56<br>
53227 BONN<br>
<br>
</div>
<div id="col-1"> <img
src="cid:part1.08060401.08070408@terrestris.de" alt="Logo
der terrestris GmbH & Co. KG" height="150" width="150">
</div>
<div id="col-2">
<p class="no-margin"> Dipl.-Ing. Christian Mayer<br>
— Anwendungsentwickler —<br>
</p>
<address> terrestris GmbH & Co. KG<br>
Pützchens Chaussee 56<br>
53227 Bonn </address>
<p> Tel: +49 (0)228 / 96 28 99 -53<br>
Fax: +49 (0)228 / 96 28 99 -57<br>
</p>
<p> Email: <a href="mailto:mayer@terrestris.de">mayer@terrestris.de</a><br>
Web: <a href="http://www.terrestris.de">http://www.terrestris.de</a>
</p>
</div>
<div id="col-clear">
<p> Amtsgericht Bonn, HRA 6835<br>
Komplementärin: terrestris Verwaltungsgesellschaft mbH<br>
vertreten durch: Hinrich Paulsen, Till Adams <br>
</p>
</div>
</div>
</div>
</div>
<br>
Am 01.11.2011 20:32, schrieb Peerasak Wangsom:
<blockquote
cite="mid:CAEtQNXgJ0ch8wDiefKe3OiQentovqtGQrzDv4+rUedecpHfd8Q@mail.gmail.com"
type="cite">Dear All,
<div><br>
</div>
<div><br>
</div>
<div>The below link is the tree nodes example of GeoExt docs.</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://api.geoext.org/1.0/examples/tree.html">http://api.geoext.org/1.0/examples/tree.html</a></div>
<div><br>
</div>
<div>What can I do if I want to change the name of the sub layer
under layer group.</div>
<div>For example, if I want to change "topp:tasmania_roads" to
"Tasmania Road", how do I edit javascript code.</div>
<div><br>
</div>
<div>Thank you in advance,</div>
<div><br>
</div>
<div>wangsom</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>