TREENODETYPES attribute does not work

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
 
S

Steven Cheng[MSFT]

Hi Charts,

Welcome to ASPNET newsgroup.
As for the TreeView NodeType problem, I'll try testing the xml files you
provided on my local side and will let you know if I got any results.
Meanwhile, if you have any other findings, please also feel free to post
here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: TREENODETYPES attribute does not work
| thread-index: AcWH3cX4RXvWIWxjSmmb5Lhz0dKEOw==
| X-WBNR-Posting-Host: 216.64.114.162
| From: =?Utf-8?B?Q2hhcnRz?= <[email protected]>
| Subject: TREENODETYPES attribute does not work
| Date: Wed, 13 Jul 2005 12:05:02 -0700
| Lines: 82
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:9898
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
|
| 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
|
|
 
C

Charts

Hi Steven,
Don’t worry to testing my XML file. All my purpose is to change font in the
treeview node. It does not have to be through loading XML file through
TreeNodeTypeSrc="TreeNodeTypes.xml">. It can be done through attributes in
<mytree:TreeView> node. However the font does not change no matter what the
font name I gave. I made a new posting today titled
“Cannot change font in Webcontrol treeview nodeâ€
Following is the text.

I am use Webcontrol treeview, and I followed examples in the msdn document
to format the treeview control.

<mytree:TreeView runat="server"
SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1"
NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn" AutoPostBack="True"
DefaultStyle="font-name:Tahoma;font-size:10pt"
</ mytree:TreeView>

However the font does not change no matter what font name I specified in
font-name attribute. It always takes default. I am able to change font-size.
Please help.
XXXXXXXX

If you can address this issue to me, then you can ignore my previous posting
concerning XML style file.
Thanks so much.
Charts
 
S

Steven Cheng[MSFT]

Thanks for your followup Charts,

I've also noticed your another new post. No problem, I'll look into the
font issue first and reply you in the new issue.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: TREENODETYPES attribute does not work
| thread-index: AcWIoDvmOfzEvr7tT+6cG9ppIsvHUQ==
| X-WBNR-Posting-Host: 216.64.114.162
| From: =?Utf-8?B?Q2hhcnRz?= <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: RE: TREENODETYPES attribute does not work
| Date: Thu, 14 Jul 2005 11:17:03 -0700
| Lines: 160
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:9929
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
|
| Hi Steven,
| Don’t worry to testing my XML file. All my purpose is to change font
in the
| treeview node. It does not have to be through loading XML file through
| TreeNodeTypeSrc="TreeNodeTypes.xml">. It can be done through attributes
in
| <mytree:TreeView> node. However the font does not change no matter what
the
| font name I gave. I made a new posting today titled
| “Cannot change font in Webcontrol treeview node�
Following is the text.
|
| I am use Webcontrol treeview, and I followed examples in the msdn
document
| to format the treeview control.
|
| <mytree:TreeView runat="server"
| SystemImagesPath="/webctrl_client/1_0/treeimages" ID="Treeview1"
| NAME="Treeview1" ONSELECTEDINDEXCHANGE="mySelectChangeFn"
AutoPostBack="True"
| DefaultStyle="font-name:Tahoma;font-size:10pt"
| </ mytree:TreeView>
|
| However the font does not change no matter what font name I specified in
| font-name attribute. It always takes default. I am able to change
font-size.
| Please help.
| XXXXXXXX
|
| If you can address this issue to me, then you can ignore my previous
posting
| concerning XML style file.
| Thanks so much.
| Charts
|
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Charts,
| >
| > Welcome to ASPNET newsgroup.
| > As for the TreeView NodeType problem, I'll try testing the xml files
you
| > provided on my local side and will let you know if I got any results.
| > Meanwhile, if you have any other findings, please also feel free to
post
| > here.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | Thread-Topic: TREENODETYPES attribute does not work
| > | thread-index: AcWH3cX4RXvWIWxjSmmb5Lhz0dKEOw==
| > | X-WBNR-Posting-Host: 216.64.114.162
| > | From: =?Utf-8?B?Q2hhcnRz?= <[email protected]>
| > | Subject: TREENODETYPES attribute does not work
| > | Date: Wed, 13 Jul 2005 12:05:02 -0700
| > | Lines: 82
| > | Message-ID: <[email protected]>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet.webcontrols:9898
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
| > |
| > | 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
| > |
| > |
| >
| >
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top