|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TREENODETYPES attribute does not workboth 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 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.) -------------------- Show quoteHide quote | Thread-Topic: TREENODETYPES attribute does not work microsoft.public.dotnet.framework.aspnet.webcontrols:9898| thread-index: AcWH3cX4RXvWIWxjSmmb5Lhz0dKEOw== | X-WBNR-Posting-Host: 216.64.114.162 | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> | Subject: TREENODETYPES attribute does not work | Date: Wed, 13 Jul 2005 12:05:02 -0700 | Lines: 82 | Message-ID: <AF3F8F5B-C633-45C3-892D-B48E7A4DB***@microsoft.com> | 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 Show quoteHide quote | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols imageUrl="/webctrl_client/1_0/images/folder.gif"| | 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" Show quoteHide quote | 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 | | 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 Show quoteHide quote "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?= <Acharts@newsgroup.nospam> > | Subject: TREENODETYPES attribute does not work > | Date: Wed, 13 Jul 2005 12:05:02 -0700 > | Lines: 82 > | Message-ID: <AF3F8F5B-C633-45C3-892D-B48E7A4DB***@microsoft.com> > | 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 > | > | > > 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 <tvbSPHIiFHA.2***@TK2MSFTNGXA01.phx.gbl>| thread-index: AcWIoDvmOfzEvr7tT+6cG9ppIsvHUQ== | X-WBNR-Posting-Host: 216.64.114.162 | From: =?Utf-8?B?Q2hhcnRz?= <Acharts@newsgroup.nospam> | References: <AF3F8F5B-C633-45C3-892D-B48E7A4DB***@microsoft.com> Show quoteHide quote | Subject: RE: TREENODETYPES attribute does not work microsoft.public.dotnet.framework.aspnet.webcontrols:9929| Date: Thu, 14 Jul 2005 11:17:03 -0700 | Lines: 160 | Message-ID: <1009AE7F-F19E-4321-B471-5448D4A12***@microsoft.com> | 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 | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols Following is the text.| | 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� Show quoteHide quote | 1px;color:black;| 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?= <Acharts@newsgroup.nospam> | > | Subject: TREENODETYPES attribute does not work | > | Date: Wed, 13 Jul 2005 12:05:02 -0700 | > | Lines: 82 | > | Message-ID: <AF3F8F5B-C633-45C3-892D-B48E7A4DB***@microsoft.com> | > | 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 | > | font-name:Tahoma;font-size:10pt" SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"| > | HoverStyle="color:blue;font-name:Arial" | > | | > | > imageUrl="/webctrl_client/1_0/images/html.gif" | > | </auditwztree:TreeNode> | > | </Mytree:TreeView> | > | | > | | > | Among which, TreeNodeTypeSrc="TreeNodeTypes.xml" | > | TreeNodeSrc=" state_city.xml" | > | | > | | > | | > | TreeNodeTypes.xml looks like this. | > | | > | <TREENODETYPES> | > | <TreeNodeType type="file" | > | Text="Select Medical Corporation" 1px;color:black;| > | Expanded="True" Expandable="CheckOnce" | > | DefaultStyle="background:#CCCCCC;border:solid | > | font-name:Tahoma;font-size:10pt" SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"| > | HoverStyle="color:blue;font-name:Arial" | > | | > | 1px;color:black;| > | /> | > | <TreeNodeType type="folder" | > imageUrl="/webctrl_client/1_0/images/folder.gif" | > | Text="Select Medical Corporation" | > | Expanded="True" Expandable="CheckOnce" | > | DefaultStyle="background:#CCCCCC;border:solid | > | font-name:Tahoma;font-size:10pt" SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"| > | HoverStyle="color:blue;font-name:Arial" | > | | > | imageUrl="/webctrl_client/1_0/images/root.gif"| > | /> | > | <TreeNodeType type="root" | > | Text="Select Medical Corporation" 1px;color:black;| > | Expanded="True" Expandable="CheckOnce" | > | DefaultStyle="background:#CCCCCC;border:solid | > | font-name:Tahoma;font-size:10pt" SelectedStyle="color:red;font-name:Arial;font-weight:bold-italic"| > | HoverStyle="color:blue;font-name:Arial" | > | Show quoteHide quote | > | | > | /> | > | </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 | > | | > | | > | > |
REPOST: How can I change the color of the Selected Item in a list
IExtenderProvider Please Help: ListBox.SelectedItem returns null Error: Multiple controls with the same ID ListItem individual Color a dropdown list in the "Properties" window Add UserControl on CodeBeheind Send email bu clicking button asp.net 2.0: Webcontrols in Library validator for drop down list box |
|||||||||||||||||||||||