Dock width scaling at 100%

5 posts, 0 answers
  1. Jim Zimmerman
    Jim Zimmerman avatar
    4 posts
    Member since:
    Jan 2006

    Posted 02 Aug 2007 Link to this post

    I am trying to make my docks scale inside of a 3 column table that has a width of 100% so that no matter the resolution of the client, the widgets will scale out.  This works when setting the docks to 100%, but when i click on the dock to drag and drop it to another zone, the dock scales 100% across all three zones which make the drag and drop pretty much unusable.  Any ideas on how to make this work?  I am going for the dynamic scaling of widgets similar to other portals like iGoogle, etc.

    thanks,
    Jim

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 02 Aug 2007 Link to this post

    Hello Jim,

    Just don't set Width=100% and make sure that the zones have FitDocks=true. This should be enough.

    Kind regards,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Jim Zimmerman
    Jim Zimmerman avatar
    4 posts
    Member since:
    Jan 2006

    Posted 02 Aug 2007 Link to this post

    I am not seeing FitDocks in intellisense anywhere for the zone, docks or layout?  Am i behind a version.  I think i have the latest.

    thanks,
    Jim
  4. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 03 Aug 2007 Link to this post

    Hi Jim,

    Please, download our latest version of Rad Controls Prometheus.

    FitDocks is property of RadDockZone. For example:
    RadDockZone1.FitDocks = true;

    Also you can try the following example:
    ASPX:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="pages_Dock_Integration_Splitter_Default" %> 
    <%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server">  
        <title>Untitled Page</title> 
    </head> 
    <body> 
        <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
        <div> 
        <rad:RadDockLayout ID="RadDockLayout1" runat="server">      
                    <rad:RadDockZone ID="RadDockZone1" runat="server">  
                            <rad:RadDock ID="RadDock1" runat="server" Title="RadDock1"></rad:RadDock> 
                    </rad:RadDockZone>                      
        </rad:RadDockLayout> 
        </div> 
        </form> 
    </body> 
    </html> 
     
    Codebehind:
    using System;  
    using System.Data;  
    using System.Configuration;  
    using System.Collections;  
    using System.Web;  
    using System.Web.Security;  
    using System.Web.UI;  
    using System.Web.UI.WebControls;  
    using System.Web.UI.WebControls.WebParts;  
    using System.Web.UI.HtmlControls;  
     
    public partial class pages_Dock_Integration_Splitter_Default : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            RadDockZone1.FitDocks = true;  
        }  
    }  
     

    If you have any other questions, please let us know.

    Kind regards,
    Petio Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Jim Zimmerman
    Jim Zimmerman avatar
    4 posts
    Member since:
    Jan 2006

    Posted 05 Aug 2007 Link to this post

    Thanks.  I had to update to the latest.  Only problem now is that i can't have the latest Telerik.Web.UI.dll for the prometheus and the new silverlight beta which uses the older Telerik.Web.UI library.  I posted this question in the Silverlight forum where i thought it would be more appropriate.

    thanks,
    Jim

Back to Top