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

Transparent docks animation

3 Answers 56 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Social_Quotient
Top achievements
Rank 1
Social_Quotient asked on 15 Jan 2008, 11:48 PM
Is there a way in the prometheus docks to set the window to be transparent as you draw it around the screen? I have seen in the old rad controls this was native but I am not sure how to get the same appearance in the prom controls.

There was also some animation settings, are those coming into prometheus and if so when?

Thanks
John

3 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 16 Jan 2008, 11:12 AM
Hi strategic coder,

Here is some sample code demonstrating how to have a transparent dock only while dragging it:

<telerik:raddock top="200" left="200" id="RadDock1" runat="server" text="RadDock1" title="RadDock1" onclientdragstart="OnClientDragStart" 
            onclientdragend="OnClientDragEnd"
        </telerik:raddock> 
        some text 
        <script type="text/javascript"
        function OnClientDragStart(sender, args) 
        { 
            var dockElement = sender.get_element();   
            dockElement.style.opacity = "0.7";   
            dockElement.style.mozOpacity = "0.7";  
            dockElement.style.filter = "alpha(opacity=70)";  
        } 
         
        function OnClientDragEnd(sender, args) 
        { 
            var dockElement = sender.get_element();   
            dockElement.style.opacity = "";   
            dockElement.style.mozOpacity = ""
            dockElement.style.filter = ""
        } 
        </script> 


The idea is to handle OnClientDragStart to set transparency and then OnClientDragEnd to return to the original non-transparent dock. Concerning the animation settings - we will be considering including such for Q1 version of RadDock Prometheus but the timeframe for this feature remains subject to change.

Best wishes,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Social_Quotient
Top achievements
Rank 1
answered on 25 Jan 2008, 12:09 AM
Okay thanks, that worked

Here is the next part. I have an editor (prometheus) in the dock and i would like it to also be transparent so only the content shows and not the white background.

Is this possible?

Thanks
John
0
Martin
Telerik team
answered on 25 Jan 2008, 09:34 AM
Hello strategic coder,

We are not quite sure we understand your question.

If possible, please, send us an image file with your design, so we could clarify your ideas.

Have a great weekend!


Best wishes,
Martin Ivanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Social_Quotient
Top achievements
Rank 1
Answers by
Petya
Telerik team
Social_Quotient
Top achievements
Rank 1
Martin
Telerik team
Share this question
or