Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Treeview control doesn't show data in a Treeview


Message #1 by "Ryan Lockhart" <rlockhart@p...> on Mon, 1 Jul 2002 22:44:07
Ok, I have installed IE Web Controls and included the Referece to it, but 
my
nodes show as single lines and not in the typical TreeView fashion where 
you
can expand and collapse.  I found a person who had similiar problems on 
this
newsgroup but re-installing the web controls didn't work for me like it did
him.  Here is my code:

<mytree:treeview id="tvAD" runat="server" >
<mytree:TreeNode Text="Parent">
     <mytree:TreeNode Text="Child"></mytree:TreeNode>
</mytree:TreeNode>
   </mytree:treeview></form>


This is what it produces on the web page:


Parent Child

What am I missing here?  Any suggestions would be helpful.
Message #2 by "Chirag Shah" <chiragiit@y...> on Tue, 2 Jul 2002 16:04:58
Try this:
---------------------------------------
<form runat="Server">
<IE:TreeView Runat=Server>
<TreeNode Text="Parent" >
  <TreeNode Text="Child"/>
</TreeNode>
</IE:TreeView></form>

-----------------------------------
Message #3 by "Sri Vidya" <svsvidya@i...> on Wed, 03 Jul 2002 09:30:50 +0530
Hi,

  Thanks for the response. The problem I am facing is that TreeView 
control's event that occurs "OnIndexChanged" does not work properly. I 
want to know how to implement this one. Can you help me by providing 
any code sample you have?

Thanks.
Vidya.



On Tue, 2 Jul 2002 16:04:58
  "Chirag Shah" <chiragiit@y...> wrote:
>Try this:
>---------------------------------------
><form runat="Server">
><IE:TreeView Runat=Server>
><TreeNode Text="Parent" >
>   <TreeNode Text="Child"/>
></TreeNode>
></IE:TreeView></form>
>
>-----------------------------------

---------------------------------------------
http://mail.indiainfo.com
India's first ISO certified portal
Check world time at http://time.indiainfo.com

  Return to Index