not able to resize Raddock

6 posts, 1 answers
  1. Abhi Shinde
    Abhi Shinde avatar
    56 posts
    Member since:
    May 2010

    Posted 13 Dec 2010 Link to this post

    Hi,
           I am trying to resize the Raddoc at codebehind. But its not working. 

    <telerik:RadDockLayout runat="server" ID="RadDockLayout1" OnSaveDockLayout="RadDockLayout1_SaveDockLayout"
                                    OnLoadDockLayout="RadDockLayout1_LoadDockLayout" >
                                    <telerik:RadDockZone runat="server" ID="RadDockZone1" Width="300" MinHeight="500"
                                        Style="float: left; margin-right: 15px" >
                                    </telerik:RadDockZone>
                                    <telerik:RadDockZone runat="server" ID="RadDockZone2" Width="300" MinHeight="300"
                                        Style="float: left; margin-right: 15px; background: #f5f4e8;">      
                                    </telerik:RadDockZone>
                                    <telerik:RadDockZone runat="server" ID="RadDockZone3" Width="300" MinHeight="300"
                                        Style="background: #d5f0fa; float: left;">
                                    </telerik:RadDockZone>
                                </telerik:RadDockLayout>


    private RadDock CreateRadDock()
            {
                int docksCount = CurrentDockStates.Count;
     
                RadDock dock = new RadDock();
                dock.DockMode = DockMode.Docked;
                dock.UniqueName = Guid.NewGuid().ToString().Replace("-", "a");
                dock.ID = string.Format("RadDock{0}", dock.UniqueName);
                dock.Title = txtDocTitle.Text;
                dock.Text = string.Format("Added at {0}", DateTime.Now);
                dock.Resizable = true;
                dock.Commands.Add(new DockCloseCommand());
                dock.Commands.Add(new DockExpandCollapseCommand());
     
                return dock;
            }

    Can we resize "RadDockZone" also ??

    waiting for reply...!!!
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 15 Dec 2010 Link to this post

    Hello Abhi,

    The RadDockZone is not resizable, so if you want your zones to have custom width and height, you must set it explicitly.
    The RadDock control can be resized, even when docked in a zone, but cannot exceed the width and height of the containing zone. Please visit the RadDock's Resizable demo, and you will notice that the dock residing in the zone, can only be resized vertically to the full height of the zone.

    Greetings,
    Pero
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Abhi Shinde
    Abhi Shinde avatar
    56 posts
    Member since:
    May 2010

    Posted 16 Dec 2010 Link to this post

    hi pero,
         thanks for reply,
    I am saving state of raddocks in database. 
    state of raddock is saved like -
    -----------------------------------------------------------------------
    {"UniqueName":"f960c918a14d6a4024aa247a3358d9ca5ced","DockZoneID":"empwidgetHome_RadDockZone1","Width":"","Height":"",
    "ExpandedHeight":"0","Top":"0px","Left":"0px","Resizable":"True","Closed":"False","Collapsed":"False","Pinned":"False","Title":"Google","Text":"Added at 12/16/2010 10:37:18 AM","Tag":"http://www.google.co.in/","Index":"0"}|
    ------------------------------------------------------------------------
    but i am not able to resize the raddock.
    waiting for reply...!!!
  5. Answer
    Pero
    Admin
    Pero avatar
    1156 posts

    Posted 16 Dec 2010 Link to this post

    Hello Abhi,

    I see that you have enabled resizing of the RadDocks, but I also see that the RadDock is residing in a zone. So, could you please confirm that you are using the latest version of the RadControls, because this functionality was introduced in Q3 2010?
    As I said in my previous post, the dock cannot exceed the width and height of the parent zone. Please make sure this is satisfied, i.e. the zone has enough height (or width) for the dock to be resized.

    Greetings,
    Pero
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. Roukaya
    Roukaya avatar
    17 posts
    Member since:
    Aug 2012

    Posted 01 Jun 2012 Link to this post

    Hi Pero ..

    you said : The RadDockZone is not resizable, so if you want your zones to have custom width and height, you must set it explicitly. 

    how we can do this ???

    thanks in advance .. 
  7. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Jun 2012 Link to this post

    Hi Roukaya,

    Try setting MinHeight and MinWidth of RadDockZone as follows.

    C#:
    RadDockZone1.MinHeight = Unit.Pixel(300);
    RadDockZone1.MinWidth = Unit.Pixel(300);

    Hope this helps.

    Thanks,
    Princy.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017