Hi!
I'm quite new to Sitefinity and the Telerik RadTreeview control. I am trying to convert an old Sitefinity 3.5 site that uses the RadTreeview control in a menu to the latest version 3.7 SP1. The problem is that it seams that the handling of the skin files for the controls seams to have changed a lot between these versions.
An example:
I'm using the 3DBlue skin for the RadTreeview control. In Sitefinity 3.5 the image files for the 3DBlue skin was placed in the folder [website]\RadControls\Treeview\Skins\Round\3DBlue. In Sitefinity 3.7 I'm trying to mimic this skin look for the RadTreeview control, but everything seams to have changed. I've created a theme "Bright" for my website and created a folder "Bright" inside the folder "App_Themes". I have created a RadTreeView.skin file in this folder which looks like this:
There is a Bright.css file in the same folder as the .skin-file, this css handles the theme and the placement of the content boxes in the master page. Also I created a folder called "TreeView" in the same "Bright" folder, and this folder contains the specifics for the skin "3DBlue", which I can't get to work properly...
It has a styles.css file for the skin and also a subfolder "img" which contains the images for the node images, the plus and minus images of nodes in the treeview that have sub nodes, and so on.
The problem is that I can't find current information about how to write the styles.css file to control the specifics of the RadTreeView control (in Sitefinity, the "SiteTreeview" control where I've set the Skin property to "3DBlue", the SiteTreeview is just a wrapper for the RadTreeView contro, right?). I have managed to display some of the node line images, but it seams to be impossible to get the plus and minus images to display properly or to set the distance between the nodes so that the lines becomes a continous line, I've tried to control a lot of different classes in the styles.css but it just doesn't display right, even if I try the !important attribute. I've also tried both Firefox and Internet Explorer and to reload the view with Ctrl+F5 between the changes in the css-file. When I've checked the fabricated style code with Firebug I discovered that the important tags of "rtSp" and rtMinus are empty tags, and that seams to be the reason why my css code for these classes doesn't display anything - how do I control these built in classes in the treeview control?
Part of the generated HTML:
Part of my styles.css:
Would very much appreciate a clue to what documentation there is about this and where to find it, when I search the web I only find information about older versions of Sitefinity and the skin-handling seams to have changed a lot since then? Some clues or solutions to what I'm doing wrong would also be highly appreciated, I've tried to sort this out for a long time now.
Kind regards!
Ronny
I'm quite new to Sitefinity and the Telerik RadTreeview control. I am trying to convert an old Sitefinity 3.5 site that uses the RadTreeview control in a menu to the latest version 3.7 SP1. The problem is that it seams that the handling of the skin files for the controls seams to have changed a lot between these versions.
An example:
I'm using the 3DBlue skin for the RadTreeview control. In Sitefinity 3.5 the image files for the 3DBlue skin was placed in the folder [website]\RadControls\Treeview\Skins\Round\3DBlue. In Sitefinity 3.7 I'm trying to mimic this skin look for the RadTreeview control, but everything seams to have changed. I've created a theme "Bright" for my website and created a folder "Bright" inside the folder "App_Themes". I have created a RadTreeView.skin file in this folder which looks like this:
| <%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> |
| <telerik:RadTreeView |
| runat="server" |
| Skin="3DBlue" EnableEmbeddedSkins="false" |
| EnableEmbeddedBaseStylesheet="false"> |
| </telerik:RadTreeView> |
There is a Bright.css file in the same folder as the .skin-file, this css handles the theme and the placement of the content boxes in the master page. Also I created a folder called "TreeView" in the same "Bright" folder, and this folder contains the specifics for the skin "3DBlue", which I can't get to work properly...
It has a styles.css file for the skin and also a subfolder "img" which contains the images for the node images, the plus and minus images of nodes in the treeview that have sub nodes, and so on.
The problem is that I can't find current information about how to write the styles.css file to control the specifics of the RadTreeView control (in Sitefinity, the "SiteTreeview" control where I've set the Skin property to "3DBlue", the SiteTreeview is just a wrapper for the RadTreeView contro, right?). I have managed to display some of the node line images, but it seams to be impossible to get the plus and minus images to display properly or to set the distance between the nodes so that the lines becomes a continous line, I've tried to control a lot of different classes in the styles.css but it just doesn't display right, even if I try the !important attribute. I've also tried both Firefox and Internet Explorer and to reload the view with Ctrl+F5 between the changes in the css-file. When I've checked the fabricated style code with Firebug I discovered that the important tags of "rtSp" and rtMinus are empty tags, and that seams to be the reason why my css code for these classes doesn't display anything - how do I control these built in classes in the treeview control?
Part of the generated HTML:
| <li class="rtLI"> |
| <div class="rtMid rtSelected"> |
| <span class="rtSp"/> |
| <span class="rtMinus"/> |
| <a class="rtIn" href="test1.aspx">test-root</a> |
| </div> |
| <ul class="rtUL"> |
| <li class="rtLI"> |
| </li> |
| <li class="rtLI"> |
| </li> |
| <li class="rtLI rtLast"> |
| </li> |
| </ul> |
| </li> |
Part of my styles.css:
| /* |
| * RadTreeView 3DBlue skin |
| */ |
| #Sidebar .RadTreeView_3DBlue li |
| { |
| background-image: none; |
| } |
| /* These images do not display because the tags rtPlus and rtMinus are empty! */ |
| .RadTreeView_3DBlue .rtLines .rtPlus |
| { |
| background: transparent url(img/Plus.gif) 0 0 no-repeat; |
| } |
| .RadTreeView_3DBlue .rtLines .rtMinus |
| { |
| background: transparent url(img/Minus.gif) 0 0 no-repeat; |
| } |
| /* The selected node is NOT bold, why? */ |
| #Sidebar .RadTreeView_3DBlue .rtSelected .rtIn |
| { |
| text-weight: bold; |
| } |
| /* These images DO display properly, but the nodes are too |
| far away, leaving a gap between each node line */ |
| .RadTreeView_3DBlue .rtLines .rtTop |
| { |
| background: url(img/TopLine.gif) 0 0 no-repeat; |
| } |
| .RadTreeView_3DBlue .rtLines .rtMid |
| { |
| background: url(img/MiddleCrossLine.gif) 0 0 no-repeat; |
| } |
| .RadTreeView_3DBlue .rtLines .rtBot |
| { |
| background: url(img/BottomLine.gif) 0 0 no-repeat; |
| } |
Would very much appreciate a clue to what documentation there is about this and where to find it, when I search the web I only find information about older versions of Sitefinity and the skin-handling seams to have changed a lot since then? Some clues or solutions to what I'm doing wrong would also be highly appreciated, I've tried to sort this out for a long time now.
Kind regards!
Ronny