This is a migrated thread and some comments may be shown as answers.

[Solved] RadTreeView + custom skin + EnableDragAndDropBetweenNodes

6 Answers 234 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Peter Zolja
Top achievements
Rank 1
Peter Zolja asked on 17 Mar 2008, 03:38 PM
Hi guys,

I'm using the latest RadTreeView (Prometheus) with a custom skin (copied the skin folder and basically removed the font definition so it would use my default font instead -- but I'm not sure if changing the font is a factor). It works great except when I try to implement dragging and dropping between nodes. When I set EnableDragAndDropBetweenNodes="True" and EnableEmbeddedSkins="True" I don't see the separation lines between nodes (the ones that show the new in-between-node position). If I disable EnableEmbeddedSkins it starts working.

Is this a bug, any hints / tips?

Thanks.

6 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 17 Mar 2008, 04:03 PM
Hello Peter Zolja,

Make sure that you have renamed any selectors that apply styling to rtDropAbove_Default or rtDropBelow_Default. These two classes control the styling of the visual clue that appears between nodes when EnableDragAndDropBetweenNodes is set to true. The last part of their names depend on the name of the skin set to the TreeView, so if for example you are using Skin="MySkin" you should edit your CSS to use rtDropAbove_MySkin and rtDropBelow_MySkin

Greetings,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Peter Zolja
Top achievements
Rank 1
answered on 17 Mar 2008, 04:20 PM
I haven't renamed any of the classes. I copied the Default skin and folders and changed some of the classes (their content, but not the name). The two classes that you mentioned have not been touched. More or less I just changed some font names and some colors.
0
Accepted
Atanas Korchev
Telerik team
answered on 17 Mar 2008, 05:53 PM
Hi Peter Zolja,

Could you please paste here the contents of the modified CSS file? This will help us to pinpoint the problem. Thanks.

Sincerely yours,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Peter Zolja
Top achievements
Rank 1
answered on 17 Mar 2008, 07:01 PM
I have reviewed the custom CSS and it turned out that the separating lines were not showing up because I changed the spacing between rows (the default one seemed a bit too thick) which probably left no room for the spacing to show. I'll tweak the CSS now that I know what the problem is.

Thank you!
0
Michael Casallas
Top achievements
Rank 1
answered on 20 Mar 2008, 07:36 PM
Where does the control by default look for the skins?
0
Peter Zolja
Top achievements
Rank 1
answered on 20 Mar 2008, 10:06 PM
The control doesn't look anywhere; you have to include the css in your page. Maybe this will help: http://www.telerik.com/help/radcontrols/prometheus/HowSkinsWork.html
Tags
TreeView
Asked by
Peter Zolja
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Peter Zolja
Top achievements
Rank 1
Atanas Korchev
Telerik team
Michael Casallas
Top achievements
Rank 1
Share this question
or