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

Eliminate all transparency from RadDock ?

2 Answers 21 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 30 Aug 2014, 01:39 AM

Is it possible to drag around a RadDock without it becoming transparent?

I've tried hooking into the OnClientDragStart with this function:

function OnClientDragStart(sender, args)
{
   var dockElement = sender.get_element();
   dockElement.style.opacity = "";
   dockElement.style.mozOpacity = "";
   dockElement.style.filter = ""; 
}

It has no effect - I can set the transparency very low or high successfully, but even with transparency at the lowest, it visually looks about 50% transparent.

I've removed the SkinManager and tried a bunch of jQuery on individual elements in the OnClientDragStart function as well, but something in the framework is consistently setting the entire dock's transparency when dragging starts.

I'm using UI for ASP.NET AJAX, v2014.1.403.45

Thanks,
Mike

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 03 Sep 2014, 11:43 AM

Hi Mike,

There is an additional CSS class that applies the transparency, so you can override it like this:

div.RadDock.rdDragHelper
{
    opacity: 1 !important;
    filter: "" !important;
    -ms-filter: "" !important;
    mozOpacity: 1 !important;
}



Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mike
Top achievements
Rank 1
answered on 03 Sep 2014, 05:20 PM
Works like a charm.  Thanks!
Mike
Tags
Dock
Asked by
Mike
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Mike
Top achievements
Rank 1
Share this question
or