CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 5/2/2005 11:11:35 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
dabbi2005
Asp.Net User
Remove top entry in TreeView5/2/2005 11:11:35 AM

0/0

Does the top entry in TreeView really have to be there? Because it causes a ~40px unneccesary left margin on the whole view! Eg

Home
|_Authors
  |_most famous
  |_...
|_Books
  |_most popular
  |_...

I'd like to have that "Home" removed or not visible!

jdixon
Asp.Net User
Re: Remove top entry in TreeView5/2/2005 2:42:10 PM

0/0

Given a dataBound tree this can easily be done with XPath in the xmlDataSource, here is an example where th top level will not be present, lemme know if this works for you!

JD

XMLFILE

<level1>

<level2>

<level3></level3>

</level2>

<level2>

<level3></level3>

</level2>

</level1>

 

aspx:

<%@ Page Language="C#" %>

<html>

<body>

<form id="form1" runat="server">

<div>

<asp:XmlDataSource ID="XmlDataSource2" runat="server" DataFile="xmlfile.xml" XPath="/level1/level2">

</asp:XmlDataSource>

<asp:TreeView ID="TreeView2" runat="server" DataSourceID="XmlDataSource2">

</asp:TreeView>

</div>

</form>

</body>

</html>


This posting is provided "AS IS" with no warranties, and confers no rights.
We Are Hiring
dannychen
Asp.Net User
Re: Remove top entry in TreeView5/2/2005 6:01:48 PM

0/0

If you happen to be bound to a siteMapDataSource, you can also set showStartingNode="false" on the DS and it will display the 2nd level instead at the top of the tree.
--
Danny


disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Advances in Information Retrieval: 25th European Conference on IR Research, ECIR 2003, Pisa, Italy, April 14-16, 2003 : Proceedings Authors: Fabrizio Sebastiani, Pages: 624, Published: 2003
Business Process Modelling with ARIS: A Practical Guide Authors: Rob Davis, Pages: 531, Published: 2001
Data Entry and Validation with C# and VB .NET Windows Forms Authors: Nick Symmonds, Pages: 768, Published: 2003
Professional C# 2008 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1782, Published: 2008
Beginning Visual Basic 6 Database Programming Authors: John Connell, Pages: 860, Published: 2003
Recent Advances in Constraints: Joint ERCIM/CoLognet International Workshop on Constraint Solving and Constraint Logic Programming, CSCLP 2003, Budapest, Hungary, June 30 - July 2, 2003 : Selected Papers Authors: Krzysztof R. Apt, European Research Consortium for Informatics and Mathematics, Francois Fages, Francesca Rossi, Peter Szeredi, Jozsef Vancza, Pages: 284, Published: 2003

Web:
Remove top entry in TreeView - ASP.NET Forums Remove top entry in TreeView. Last post 05-02-2005 2:01 PM by dannychen. 2 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
VisualStyleElement Class (System.Windows.Forms.VisualStyles) Append(entry.Key) compareClassName.Remove(firstDotIndex, _ compareClassName. Length - firstDotIndex) ' Add a new top-level node to the tree view. ...
The Fedora Community Portal - Forum - Fedora Test List - nautilus ... Re: nautilus remove problem from tree view. #7. Home away from home ... clicking the entry in the tree and choosing delete. Move to trash ...
TreeView (java-gnome 4.0 API Documentation) Set whether this TreeView has a header row at the top of the Widget showing the ..... To reset the TreeView to use the built-in popup Entry, pass in null . ...
jQuery Treeview with MODx Wayfinder | ProDevTips - dev notes and ... Treeview requires jQuery cookie by Klaus Hartl to remember its state. .... This entry was posted on Sunday, July 6th, 2008 at 1:58 pm and is filed under CMS ...
Display Hierarchical Data with TreeView in ASP.NET 2.0: ASP Alliance Now I need to incorporate treeview into a gridview data entry form. ... how can we display treeview from top- to bottom rather then from left to right. ...
singleradiobutton: Tree View Removal Surgery There are two recipes to remove tree view: 1. Just remove it – My ... Freeze top -levels: In our experience, a tree view that have more than 2 types of ...
Hide Root Node of XML Bound TreeView (ASP.NET) « Horus_SS2 Tags: treeview, xmldatasource, root node, hide, asp.net, skip, xml, show. This entry was posted on June 28, 2008 at 3:54 am and is filed under web ...
treeview(n) manual page You can insert or delete nodes using treeview widget or tree command ...... In listbox mode, the last entry can always be scrolled to the top of the widget. ...
API: treeview TreeViewEd.js (YUI Library) Entry point of the editing plug-in. * TreeView will call this method if it .... purge all possible events and remove the editor contents * Method Event. ...

Videos:
Structuring Personal Information When Everything Can Be Saved and Searched... Google TechTalks May 17, 2006 William Jones William Jones is an Research Associate Professor in The Information School at the University of Washingt...




Search This Site:










ddl selected index problem

how do i pass values to a user control programmatically?

server callback

cursor position - comment box

data base is updating when refresh button is called

how to browse directory on server?

word, html to pdf conversion

urgent: how to create a pop-up window on button click

test text box for contents before modal pops up

auto number

passing .html page from querystring into placeholder

validation question (on key press??)

event that fires contains information from a previous event

rendering design-time content on a web usercontrol

redirect to external site with parameters in post method

conditional dropdownlist postback

what is the best way to... create an edit view and view view of a custom table?

loginname control not showing in class file

asp.net help

problems while publishing website in someother domain

tabbed website design

online assessment system

placeholder control gets reset after user control is fired

firefox submits when pressing enter in multiline textbox

how to check values of a checkboxlist?

how to use httpresponse class object in filesystemeventhandler

using dropdownlist values in an sql statement

force printing

remote invocation of web form controls

pop3 problem - "3d"

  Privacy | Contact Us
All Times Are GMT