Tree View drag / drop visual cue

1 Answer 33 Views
Treeview
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Toby asked on 01 Nov 2024, 01:09 PM

Hi,

Is it possible to override the colour and width of the horizontal drag / drop visual cue? If so can you give me an example ?

 

Cheers

Toby

1 Answer, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 04 Nov 2024, 12:49 PM

Hello Toby,

The illustrated line is actually presented by an image that is specified in each theme. If you need to customize the line while dragging a node, it is necessary to specify the TreeViewElement.ItemDropHint property using an image. The following code snippet illustrates how to set a new drop hint. You can create a new drop hint image and apply it to the ItemDropHint property.

this.radTreeView1.TreeViewElement.ItemDropHint = new RadImageShape() { Image = Properties.Resources.MyNewImage };

I hope this information helps.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Treeview
Asked by
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or