Transparent docks animation

4 posts, 0 answers
  1. Social_Quotient
    Social_Quotient avatar
    54 posts
    Member since:
    Oct 2012

    Posted 15 Jan 2008 Link to this post

    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
  2. Petya
    Admin
    Petya avatar
    869 posts

    Posted 16 Jan 2008 Link to this post

    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
  3. Social_Quotient
    Social_Quotient avatar
    54 posts
    Member since:
    Oct 2012

    Posted 24 Jan 2008 Link to this post

    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
  4. Martin
    Admin
    Martin avatar
    585 posts

    Posted 25 Jan 2008 Link to this post

    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
Back to Top