<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Internet Explorer Web Controls</title><link>http://forums.asp.net/91.aspx</link><description>General discussion of the Internet Explorer Web Controls source package for ASP.NET 1.x.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Treeview control's selectednodeindex property in javascript</title><link>http://forums.asp.net/thread/2735258.aspx</link><pubDate>Mon, 10 Nov 2008 12:39:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2735258</guid><dc:creator>Matter</dc:creator><author>Matter</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2735258.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=2735258</wfw:commentRss><description>&lt;p&gt;friends, i am waiting for the reply as i stuck at this point. any &lt;img src="http://forums.asp.net/emoticons/emotion-55.gif" alt="Idea" /&gt;&lt;/p&gt;</description></item><item><title>Re: Treeview control's selectednodeindex property in javascript</title><link>http://forums.asp.net/thread/2734524.aspx</link><pubDate>Mon, 10 Nov 2008 05:52:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2734524</guid><dc:creator>Matter</dc:creator><author>Matter</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2734524.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=2734524</wfw:commentRss><description>Hello All, I am using tree view control and use xmlsitemap for the datasource. I want some thing like, If user select particular parent node then other node should be collapse, using javascript. I don&amp;#39;t want post back. Can anybody tell me on which event i have to write javascript logic. Thanks</description></item><item><title>Re: Treeview control's selectednodeindex property in javascript</title><link>http://forums.asp.net/thread/2253392.aspx</link><pubDate>Tue, 25 Mar 2008 12:05:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2253392</guid><dc:creator>shaikhather</dc:creator><author>shaikhather</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2253392.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=2253392</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;It is a very late reply but still you are looking for better solution it is here.&lt;/p&gt;
&lt;p&gt;set the following if you are using ASP.NET 2.0&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;nodeCat.SelectAction = TreeNodeSelectAction.None&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Treeview control's selectednodeindex property in javascript</title><link>http://forums.asp.net/thread/1173061.aspx</link><pubDate>Thu, 19 Jan 2006 11:07:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1173061</guid><dc:creator>Sophie</dc:creator><author>Sophie</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1173061.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=1173061</wfw:commentRss><description>&lt;p&gt;Hi..this is working to suppress the expand event and for avoiding postback&lt;/p&gt;
&lt;p&gt;But when i try to select any child node an exception is being thrown.It says &lt;/p&gt;
&lt;p&gt;&lt;em&gt;The node at index 0.0 is not currently displayed in the tree. SelectedNodeIndex cannot be set to an undisplayed node .&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Can some one help me ???..Thanks in advance!!!&lt;/p&gt;</description></item><item><title>Re: Treeview control's selectednodeindex property in javascript</title><link>http://forums.asp.net/thread/1159415.aspx</link><pubDate>Thu, 05 Jan 2006 04:03:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1159415</guid><dc:creator>hkhawaja</dc:creator><author>hkhawaja</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1159415.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=1159415</wfw:commentRss><description>&lt;p&gt;You need to override the events and point them to JS methods.&lt;/p&gt;
&lt;p&gt;In the aspx page add this JS method, assuming your treeview object is called treeView.&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;&amp;lt;script language="javascript"&amp;gt;
&lt;p&gt;function myFunc()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;/font&gt;

		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		


		function myFunc()
		{
		
		}
		

&lt;p&gt;Then in Page_Load add the following:&lt;font color=#008000 size=2&gt;
&lt;p&gt;&lt;font color=#000000&gt;treeView.Attributes.Add("onexpand","javascript:myFunc()"); &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000&gt;treeView.Attributes.Add("oncollapse","javascript:myFunc()"); &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000&gt;This should let you expand and collapse client side with no round trips.&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/p&gt;</description></item><item><title>Re: Treeview control's selectednodeindex property in javascript</title><link>http://forums.asp.net/thread/1158550.aspx</link><pubDate>Wed, 04 Jan 2006 12:19:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1158550</guid><dc:creator>UBGandalf</dc:creator><author>UBGandalf</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1158550.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=1158550</wfw:commentRss><description>I'm really waiting an answer for this question too. Postback on -/+ doesn't make any sense.&lt;br /&gt;
&lt;br /&gt;
Please share if you fand a solution. Updating treeview.htc file didn't
work for me and I tried to catch onexpand and oncollapse events from
javascript. I did it but how can I make TreeView expand and collapse ? &lt;br /&gt;
&lt;br /&gt;
This is the whole story...&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Treeview control's selectednodeindex property in javascript</title><link>http://forums.asp.net/thread/1130729.aspx</link><pubDate>Fri, 02 Dec 2005 21:10:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1130729</guid><dc:creator>sphatak</dc:creator><author>sphatak</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1130729.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=91&amp;PostID=1130729</wfw:commentRss><description>&lt;P&gt;I am trying to get the selectednodeindex property of the Microsoft Treeview webcontrol but having no luck. I am getting an error "undefined". Does that mean I cannot access this property using javascript? I want it in javascript to avoid postback. Is it possible to get the index of the node selected or the text selected in any other way on the client side?&lt;/P&gt;
&lt;P&gt;Here is my javascript code snippet: alert(document.all.iform.TreeViewCtrl.SelectedNodeIndex)&lt;/P&gt;
&lt;P&gt;Any help with me highly appreciated!&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>