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

Styling the dragged shadow region during drag and drop on RadGrid

3 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raj Nemani
Top achievements
Rank 1
Raj Nemani asked on 22 Jul 2008, 02:43 PM
Hi,

How can I style the dragged shadow region during D&D of RadGrid.  I tried the follwoing classes and it did not seem to work.

.GridRowSelector_Default

For styling the colored rectangle when selecting multiple rows by dragging.

.GridItemDropIndicator_Default

Defines the drop indicator appearance when utilizing drag and drop of grid records.


I am dragging a single row from the grid, BTW

Thanks
Raj

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Jul 2008, 04:01 PM
Hello Raj Nemani,

Please copy/paste your custom styles, which do not seem to work.


Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Raj Nemani
Top achievements
Rank 1
answered on 22 Jul 2008, 07:46 PM
Here are the styles

.GridRowSelector_Default

{

background-color:red !important;

}

.GridItemDropIndicator_Default

{

background-color:red !important;

}

0
Dimo
Telerik team
answered on 23 Jul 2008, 12:08 PM
Hello Raj Nemani,

The drop indicator style should work as is. If you still have problems with it, please provide a live URL or a sample page for us to investigate. Note that the skin suffix at the end of the CSS class must match the name of the skin of the originating RadGrid, not the one that you are dropping items on (in case they are different).

As for the row selector style, currently there is an inline style rendered by RadGrid and a style in the skin, which uses !important. This is done for backwards compatibility. In order to override both styles, you need to use a custom CSS rule with a higher specificity and !important. In other words, please try this:

span.GridRowSelector_Default

{

background-color:red !important;

}



Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Raj Nemani
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Raj Nemani
Top achievements
Rank 1
Share this question
or