C
Charts
I am using treeview in Webcontrol. I applied the sample code, which used
both TreeNodeSrc and TREENODETYPES attributes.
< Mytree:TreeView
runat="server" SystemImagesPath="/webctrl_client/1_0/treeimages"
ID="Treeview1"
NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn"
AutoPostBack="True"
TreeNodeTypeSrc="TreeNodeTypes.xml">
<auditwztree:TreeNode
ImageUrl="/webctrl_client/1_0/images/root.gif" TreeNodeSrc="
state_city.xml" Text="Select Medical Corporation"
Expanded="True" Expandable="CheckOnce"
DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;
font-name:Tahoma;font-size:10pt"
HoverStyle="color:blue;font-name:Arial"
SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"</auditwztree:TreeNode>
</Mytree:TreeView>
Among which, TreeNodeTypeSrc="TreeNodeTypes.xml"
TreeNodeSrc=" state_city.xml"
TreeNodeTypes.xml looks like this.
<TREENODETYPES>
<TreeNodeType type="file" imageUrl="/webctrl_client/1_0/images/html.gif"
Text="Select Medical Corporation"
Expanded="True" Expandable="CheckOnce"
DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;
font-name:Tahoma;font-size:10pt"
HoverStyle="color:blue;font-name:Arial"
SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"
/>
<TreeNodeType type="folder" imageUrl="/webctrl_client/1_0/images/folder.gif"
Text="Select Medical Corporation"
Expanded="True" Expandable="CheckOnce"
DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;
font-name:Tahoma;font-size:10pt"
HoverStyle="color:blue;font-name:Arial"
SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"
/>
<TreeNodeType type="root" imageUrl="/webctrl_client/1_0/images/root.gif"
Text="Select Medical Corporation"
Expanded="True" Expandable="CheckOnce"
DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;
font-name:Tahoma;font-size:10pt"
HoverStyle="color:blue;font-name:Arial"
SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"
/>
</TREENODETYPES>
state_city.xml looks like this.
<TREENODES>
<treenode Text="Michigan">
<treenode Text="Detroit" />
<treenode Text="Farmington" />
<treenode Text="Southfield" />
</treenode>
<treenode Text="Washington" >
<treenode Text="Bellevue" />
<treenode Text="Redmond" />
<treenode Text="Woodinville" />
</treenode>
</TREENODES>
TreeNodeSrc works just fine. However TreeNodeTypeSrc does not work. The
notes filled with the default formatting. There are no error messages and
warnings. Please help.
Thanks,
Charts
both TreeNodeSrc and TREENODETYPES attributes.
< Mytree:TreeView
runat="server" SystemImagesPath="/webctrl_client/1_0/treeimages"
ID="Treeview1"
NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn"
AutoPostBack="True"
TreeNodeTypeSrc="TreeNodeTypes.xml">
<auditwztree:TreeNode
ImageUrl="/webctrl_client/1_0/images/root.gif" TreeNodeSrc="
state_city.xml" Text="Select Medical Corporation"
Expanded="True" Expandable="CheckOnce"
DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;
font-name:Tahoma;font-size:10pt"
HoverStyle="color:blue;font-name:Arial"
SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"</auditwztree:TreeNode>
</Mytree:TreeView>
Among which, TreeNodeTypeSrc="TreeNodeTypes.xml"
TreeNodeSrc=" state_city.xml"
TreeNodeTypes.xml looks like this.
<TREENODETYPES>
<TreeNodeType type="file" imageUrl="/webctrl_client/1_0/images/html.gif"
Text="Select Medical Corporation"
Expanded="True" Expandable="CheckOnce"
DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;
font-name:Tahoma;font-size:10pt"
HoverStyle="color:blue;font-name:Arial"
SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"
/>
<TreeNodeType type="folder" imageUrl="/webctrl_client/1_0/images/folder.gif"
Text="Select Medical Corporation"
Expanded="True" Expandable="CheckOnce"
DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;
font-name:Tahoma;font-size:10pt"
HoverStyle="color:blue;font-name:Arial"
SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"
/>
<TreeNodeType type="root" imageUrl="/webctrl_client/1_0/images/root.gif"
Text="Select Medical Corporation"
Expanded="True" Expandable="CheckOnce"
DefaultStyle="background:#CCCCCC;border:solid 1px;color:black;
font-name:Tahoma;font-size:10pt"
HoverStyle="color:blue;font-name:Arial"
SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"
/>
</TREENODETYPES>
state_city.xml looks like this.
<TREENODES>
<treenode Text="Michigan">
<treenode Text="Detroit" />
<treenode Text="Farmington" />
<treenode Text="Southfield" />
</treenode>
<treenode Text="Washington" >
<treenode Text="Bellevue" />
<treenode Text="Redmond" />
<treenode Text="Woodinville" />
</treenode>
</TREENODES>
TreeNodeSrc works just fine. However TreeNodeTypeSrc does not work. The
notes filled with the default formatting. There are no error messages and
warnings. Please help.
Thanks,
Charts