Styling Tutorials? for TreeView
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebcontrols' list.


Pierre Thomasius
Hi all,

I'm looking for any documentation or tutorials on how to style the =
TreeView WebControl.

any help appriciated :)

Pierre

Reply to this message...
 
    
James Avery
The controls do not work great with CSS, but check out my article over
on aspalliance. In the first article I go over the majority of the
style options available.

http://www.aspalliance.com/jamesavery/webcontrols/treeviewp1.aspx

Thanks,
James

-----Original Message-----
From: Pierre Thomasius [mailto:Click here to reveal e-mail address]
Sent: Saturday, May 04, 2002 10:21 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Styling Tutorials??? for TreeView

Hi all,

I'm looking for any documentation or tutorials on how to style the
TreeView WebControl.

any help appriciated :)

Pierre

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
    
Arthur Fuller
I am trying to get my head around data-driven treeviews. I've looked at the
XML stuff and am having difficulty applying it to my situation. Just to make
it more frustrating for me, I have some VBA code that I wrote about a year
ago that does exactly what I want. Enough preamble...

Each level of my treeview has to come from a separate table or view. The
code I wrote takes a Select statement and a node level and populates the
tree at that given level, figuring out the parent nodes etc., so that, for
example, in three statements I can populate the tree 3 levels deep.

The declaration for my ADO procedure is:

Public Sub dbaTVPopulateADO _
(ctlTree As Control, _
strRecordSource As String, _
intTreeLevel As Integer, _
strDisplayColumn As String, _
Optional strPKColumn As String, _
Optional strParentColumn As String)

where strRecordSource is any valid SELECT statement, intTreeLevel is the
node level I want to populate. strDisplayColumn is pretty obvious, as are
the two optional parms. So that for example:

Rolling Stones World Tour 2000 <-- "Select * From Tours", 1, ..., "TourID"
    Boston 05-Sep-02    <-- Select * From Events, 2,... "EventID", "TourID"
        Platinum Package...    <-- Select * From Packages, 3, ...
        Gold Package...
        Silver Package...
    Chicago 10-Sep-02
    Chicago 13-Sep-02
Cher Tour 2002
    etc.

Three calls to my procedure and I populate all three levels of the treeview.

That's where I want to end up with a web treeview. Should I go the XML
route? If so, how do I get the various levels in? Separate XML files for
each level?

Hoping for some insight from all you wizards :-)

Arthur

-----Original Message-----
From: James Avery [mailto:Click here to reveal e-mail address]
Sent: Saturday, May 04, 2002 2:39 PM
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Styling Tutorials??? for TreeView

The controls do not work great with CSS, but check out my article over
on aspalliance. In the first article I go over the majority of the
style options available.

http://www.aspalliance.com/jamesavery/webcontrols/treeviewp1.aspx

Thanks,
James

-----Original Message-----
From: Pierre Thomasius [mailto:Click here to reveal e-mail address]
Sent: Saturday, May 04, 2002 10:21 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Styling Tutorials??? for TreeView

Hi all,

I'm looking for any documentation or tutorials on how to style the
TreeView WebControl.

any help appriciated :)

Pierre

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
    
James Avery
I do something very much like this. The route I went was creating a
aspx page that generated the xml through response.write. You can run
each query and then response.write out the xml you want.

-----Original Message-----
From: Arthur Fuller [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 08, 2002 9:53 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Styling Tutorials??? for TreeView

I am trying to get my head around data-driven treeviews. I've looked at
the XML stuff and am having difficulty applying it to my situation. Just
to make it more frustrating for me, I have some VBA code that I wrote
about a year ago that does exactly what I want. Enough preamble...

Each level of my treeview has to come from a separate table or view. The
code I wrote takes a Select statement and a node level and populates the
tree at that given level, figuring out the parent nodes etc., so that,
for example, in three statements I can populate the tree 3 levels deep.

The declaration for my ADO procedure is:

Public Sub dbaTVPopulateADO _
(ctlTree As Control, _
strRecordSource As String, _
intTreeLevel As Integer, _
strDisplayColumn As String, _
Optional strPKColumn As String, _
Optional strParentColumn As String)

where strRecordSource is any valid SELECT statement, intTreeLevel is the
node level I want to populate. strDisplayColumn is pretty obvious, as
are the two optional parms. So that for example:

Rolling Stones World Tour 2000 <-- "Select * From Tours", 1, ...,
"TourID"
    Boston 05-Sep-02    <-- Select * From Events, 2,...
"EventID", "TourID"
        Platinum Package...    <-- Select * From Packages, 3,
...
        Gold Package...
        Silver Package...
    Chicago 10-Sep-02
    Chicago 13-Sep-02
Cher Tour 2002
    etc.

Three calls to my procedure and I populate all three levels of the
treeview.

That's where I want to end up with a web treeview. Should I go the XML
route? If so, how do I get the various levels in? Separate XML files for
each level?

Hoping for some insight from all you wizards :-)

Arthur

-----Original Message-----
From: James Avery [mailto:Click here to reveal e-mail address]
Sent: Saturday, May 04, 2002 2:39 PM
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Styling Tutorials??? for TreeView

The controls do not work great with CSS, but check out my article over
on aspalliance. In the first article I go over the majority of the
style options available.

http://www.aspalliance.com/jamesavery/webcontrols/treeviewp1.aspx

Thanks,
James

-----Original Message-----
From: Pierre Thomasius [mailto:Click here to reveal e-mail address]
Sent: Saturday, May 04, 2002 10:21 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Styling Tutorials??? for TreeView

Hi all,

I'm looking for any documentation or tutorials on how to style the
TreeView WebControl.

any help appriciated :)

Pierre

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
 
System.Web.UI.WebControls.WebControl
System.Windows.Forms.TreeView




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com