How to customize style of RadGrid drag & drop dotted line indicator

1 Answer 56 Views
Grid
Anthony
Top achievements
Rank 1
Anthony asked on 17 Oct 2022, 05:40 PM

Hi,

I have a client who wants to make the drag & drop functionality to be more prominent.  Namely the dotted line that appears on the target to indicate where it's going to be dropped.  What's the name of this style so I can modify it, please?

 

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Doncho
Telerik team
answered on 20 Oct 2022, 07:55 AM

Hi Anthony,

The dotted line in question is styled by the Telerik Skin stylesheets. The div element used for visualizing the drop position has a CssClass GridItemDropIndicator assigned.

You can override the style by using a stronger selector than the default one. The one below should normally be sufficient:

html body .GridItemDropIndicator {
    border-top: 1px dashed red;
}
I have captured a video of the way I inspected this issue in our live demo, you may find it useful -  http://somup.com/c36YiGvYRE.

I would also recommend checking out the following two-part blog post, as it shows some useful tips on effectively using the Browser's DevTools for inspecting Html, CSS, and debugging JavaScript on the page:

I hope this helps.

Kind regards,
Doncho
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
Grid
Asked by
Anthony
Top achievements
Rank 1
Answers by
Doncho
Telerik team
Share this question
or