DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Problem with Treeview control...... (http://www.daniweb.com/forums/thread89339.html)

thirunavukaras Sep 12th, 2007 2:15 am
Problem with Treeview control......
 
Hai..

i have Problem with Treeview control......

i am developed one web application...

i am have many aspx page in this project..but all page undercontrol with treeview ..

i am alreay download the IE Web Controls from microsoft site..

I build the batch file then automatically created "Microsoft.Web.UI.WebControls.dll"

("C:\Program Files\IE Web Controls\build\Microsoft.Web.UI.WebControls.dll")

then i am go to add reference to this control..

then html view add this line then register this control

<%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral" %>

<form><ie:treeview id="Treeview3" runat="server">
<ie:treenodetype ImageUrl="file:///\\system107\Webservices\THiRU\Treeimages\folder.gif" ExpandedImageUrl="file:///\\system107\Webservices\THiRU\Treeimages\folder.gif"
Type="Folder"></ie:treenodetype>
<ie:treenode Text="Michigan" childtype="Folder">
<ie:treenode Text="Detroit"></ie:treenode>
<ie:treenode Text="Farmington"></ie:treenode>
<ie:treenode Text="Southfield"></ie:treenode>
</ie:treenode>
<ie:treenode Text="Washington">
<ie:treenode Text="Bellevue"></ie:treenode>
<ie:treenode Text="Redmond"></ie:treenode>
<ie:treenode Text="Woodinville"></ie:treenode>
</ie:treenode>
</ie:treeview>

</form>

this is the output

Michigan
Detroit
Farmington
Southfield
Washington
Bellevue
Redmond
Woodinville

i am not having the treeview output..

there is no images in that output..

i am refered many sites but i did't find the answer

please help me.

the plus symbol images how to come

i am go to click plus image to expand the treeview format output

please help ..

reply me..

rmaheshmsc Sep 18th, 2007 12:02 am
Re: Problem with Treeview control......
 
Hi Thiru....
Which version r u used in u r Proj?
I think u r using VS 2003 .....
Here U add only Parent Node ..
U Should mention child Nodes....
If u add child node then u will get collapse/Expand (+) Symbol automatically.......


All times are GMT -4. The time now is 3:37 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC