Page 3 of 7

Posted: Thu Feb 07, 2008 8:39 am
by compunerdy
:D Good catch there Jinx.

Thanks

Posted: Thu Feb 07, 2008 8:44 am
by Jinx
:D

Posted: Fri Feb 15, 2008 2:13 am
by Pat_king
hai any got the zip file for the tree view ................Pls froward me the link


Thanks in advance,

pat

Posted: Fri Feb 15, 2008 7:33 am
by Road Rider
Pat:

I would suggest just creating and installing the pages according to the directions laid out by "bumbles" on page 1 of this post.

I did this the other day and it works perfectly.

If you cannot or don't know how to create the pages let me know. I believe will need a program such as frontpage or dreamweaver (I used dreamweaver) to create.

Posted: Fri Feb 15, 2008 8:39 am
by jmestep
You can even create it in notepad - just save the file with the proper name and extension.

Posted: Thu Feb 21, 2008 7:36 am
by DonAshby
Hi

Is the zip file here somewhere. Can someone forward the link or is it posted ?

Thanks, Don :?:

There is no zip file.

Posted: Thu Feb 21, 2008 7:40 am
by Jinx
There is no zip file. Just follow the instructions bumbles has laid out in his previous posts. If you have trouble anyone on here would be more than happy to help.

Posted: Thu Feb 21, 2008 10:27 am
by jmestep
Compunerdy-- how did you get rid if the scroll bars in the control?

Posted: Thu Feb 21, 2008 11:08 am
by compunerdy
Which scrollbars? vertical or horizontal? I dont remember having to remove any.

Posted: Thu Feb 21, 2008 11:51 am
by jmestep
I found it. I had to make my leftsidebarpanel in the style.css wider because of the long category names.

Posted: Thu Feb 21, 2008 11:56 am
by compunerdy
Yup..thats the trick

Close...

Posted: Thu Feb 21, 2008 11:58 am
by Jinx
That will kind of do it but to actually remove the scroll you need to do a couple of things. First go to your CategoryTreeView.ascx file and add the width like the following..

<ComponentArt:TreeView id="TreeView1" width="192"

Then very important to truly remove the scroll you need to add this below with the other declarations.

NodeWrap="true"

Otherwise just making it bigger will only mask the issue until you have a category that is wider than the size set. Nodewrap allows the category name to wrap before adding scroll..

This is what worked for me anyway. Hope that helps.

Posted: Thu Feb 21, 2008 4:13 pm
by jmestep
Thanks, Jinx. I set the width OK, but the NodeWrap woudn't come up in intellisense. I added it anyway.

Posted: Thu Feb 21, 2008 4:20 pm
by jmestep
I am having trouble getting the stylesheet code that Bumbles posted to apply to the treeview. I've pasted it into the Style.css for the theme.
I got some of it to apply by changing the style in this from "content" to "CatTreeView"

<asp:Panel ID="TreePanel" runat="server" CssClass="CatTreeView">

I can't get other things to change, like the font-size, but maybe it's because they are links?

Posted: Fri Feb 22, 2008 1:34 am
by Bumbles
Hi Judy,

I found after making my initial post that for some reason the properties of the treeview control aren't being set correctly. To get this to work, I added the following lines of code to the InitializeCategoryTree method.

After the line that reads:

Code: Select all

TreeView1.ImagesBaseUrl = "/App_Themes/" + Page.Theme + "/images/CategoryTreeView/";
Insert the following 4 lines:

Code: Select all

TreeView1.CssClass = "CatTreeView";
TreeView1.NodeCssClass = "CatTreeNode";
TreeView1.SelectedNodeCssClass = "CatSelectedTreeNode";
TreeView1.HoverNodeCssClass = "CatHoverTreeNode";
All going well your styles should now work for you :)

You should probably change the cssclass of the asp:panel back to "content".

Posted: Fri Feb 22, 2008 6:54 am
by jmestep
Thanks, that worked. Can you edit your original post for posterity's sake? :)

Posted: Fri Feb 22, 2008 12:20 pm
by Bumbles
Good idea..... Done :-)

Posted: Wed Feb 27, 2008 5:32 pm
by jmestep
compunerdy-
How did you get your center selection to display products when you weren't in the lowest category?
For example, on this page http://www.thecustomsabershop.com/Belts ... ds-C7.aspx
the left menu expands and the center shows products even though they are in a sub category. I've added the category tree view menu, but when I click on a link like that in my menu, it won't display products until I'm down to the last subcategory.

Posted: Wed Feb 27, 2008 7:54 pm
by compunerdy
Personally I would rather it work the way you described. I didnt do anything to get it to work that way..it just did.

Judy

Posted: Thu Feb 28, 2008 7:19 am
by Jinx
Judy, you might be using the modfication that I requested and bumbles added later after his initial code he submitted in this thread. Does your navigation show like my site here? http://www.etillastuffedanimals.com. On this site I didn't want to use icons for opening with ajax just the text so Bumbles gave me some modified code that allowed the expansion to open if the LINK was clicked and there were sub categories with content. If there are no sub categories and only product in the top category product displays upon clicking on the category only.

I know I am rambling, I just don't know how to best explain.

Posted: Thu Feb 28, 2008 7:20 am
by jmestep
Maybe it has to do with the category display page you are using. Which one are you using for the center of the page?
On my site, because you have to click on subcategory links, nothing happens in the center when you click on a nav link that has categories but no products directly under it. I was afraid the customer would think the site was broken because nothing on the page changes.

Category Page

Posted: Thu Feb 28, 2008 7:24 am
by Jinx
I am using the Category Grid Page for my category content area. Is the site you are looking at viewable to the public? I could look at it if you like to get a sense of what your navigation is doing.

Posted: Thu Feb 28, 2008 7:28 am
by jmestep
Jinx- That is the code I am using so that must be why it was that way.On your site, when I click on Teddy Bears, small, nothing happens in the center. I was afraid that would cause customers to think nothing is working.
Thanks

One Thing

Posted: Thu Feb 28, 2008 7:34 am
by Jinx
Yeah unfortunately when you click on small and nothing shows it is because the client has not loaded content into the category but still marked it as active. I believe if the category was empty and marked as inactive it would not have shown. If you click on Stuffed Animals and then Aquatic - that will show you the desired navigation affect.

Posted: Thu Feb 28, 2008 7:40 am
by jmestep
Thanks for your help. I'm just going to show the client both ways and let them decide-- there are pros and cons either way.