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

toolwindow and disable fill position

2 Answers 47 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ming Zhao
Top achievements
Rank 1
Ming Zhao asked on 11 Feb 2011, 04:00 PM
Can we disable fill position when docking a toolwindow on raddock. 

Namely, we want a toolwindow to dock to those postions: top, bottom, left, right and also float on any position.
but we do not want a toolwindow to dock to a fill position,

2 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 16 Feb 2011, 09:31 AM
Hi Ming,

Could you please provide more information on the issue? I am not sure that I fully understand what exactly are you trying to achieve. Also, if possible provide the following information:
  • Version of the RadDock for ASP.NET AJAX you use
  • The browser used

Best wishes,
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.
0
Ming Zhao
Top achievements
Rank 1
answered on 16 Feb 2011, 02:32 PM
we believe that we get this figured out:

 

private void InitDragDropEvents()

 

 

{

 

Telerik.WinControls.UI.Docking.

DragDropService service = this.radDock1.GetService<Telerik.WinControls.UI.Docking.DragDropService>();

 

 

service.PreviewDockPosition +=

new Telerik.WinControls.UI.Docking.DragDropDockPositionEventHandler(service_PreviewDockPosition);

 

 

 

 

}

 

 

protected void service_PreviewDockPosition(object sender, Telerik.WinControls.UI.Docking.DragDropDockPositionEventArgs e)

 

 

{

 

 

if (e.GuidePosition == Telerik.WinControls.UI.Docking.DockingGuidesPosition.Center)

 

 

{

 

e.AllowedDockPosition =

AllowedDockPosition.Bottom | AllowedDockPosition.Top | AllowedDockPosition.Right | AllowedDockPosition.Left;

 

 

}

 

}

Tags
Dock
Asked by
Ming Zhao
Top achievements
Rank 1
Answers by
Pero
Telerik team
Ming Zhao
Top achievements
Rank 1
Share this question
or