Telerik Forums
UI for WinForms Forum
1 answer
67 views

Hi

 I’m using WinForms RadDock implementing a host and a bunch of DocumentWindow tabs.

The issue I’m having is setting the undocked floating window text so that the window shown in the Taskbar displays the text set, I'm getting the taskbar entry but it's always blank. I’ve tried a few approaches and none are successful. See code below.

private void MainDockHost_FloatingWindowCreated(object sender, FloatingWindowEventArgs e)
{
	//	first attempt
	e.Window.Text = "First Window";

	//	second attempt
	CustomFloatingWindow customWindow = new CustomFloatingWindow(MainDockHost);
	e.Window = customWindow;
	customWindow.Text = "Second Window";

	//	third attempt
	HostWindow hostWin1 = e.Window.Parent as HostWindow;

	if (hostWin1 != null)
	{
		hostWin1.Text = "Third Window";

		if (hostWin1.FloatingParent != null)
		{
			hostWin1.FloatingParent.Text = hostWin1.Text;
		}
	}

	//	forth attempt
	HostWindow hostWin2 = customWindow.Parent as HostWindow;

	if (hostWin2 != null)
	{
		hostWin2.Text = "Forth Window";

		if (hostWin2.FloatingParent != null)
		{
			hostWin2.FloatingParent.Text = hostWin2.Text;
		}
	}
}

As I’m using a document window I understand a floating window is created with the document window inside it. The two HostWindow attempts in the code both result in a null.

 

Any help with this would be appreciated.

Thanks

Miles


Nadya | Tech Support Engineer
Telerik team
 answered on 17 Jul 2024
1 answer
84 views

I have this to change the tabs colors when selected/unselected 

         {

           .....

            this.radDock1.ActiveWindowChanging += new DockWindowCancelEventHandler(radDock1_ActiveWindowChanging);
            this.radDock1.ActiveWindowChanged += new DockWindowEventHandler(radDock1_ActiveWindowChanged);

         }

        void radDock1_ActiveWindowChanged(object sender, DockWindowEventArgs e)
        {
            SizeAndColorSelectedDocWindowTab(e.DockWindow.TabStripItem, Color.LightBlue, Color.CornflowerBlue);
        }

        void radDock1_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e)
        {
            SizeAndColorUnSelectedDocWindowTab(e.OldWindow.TabStripItem, Color.CornflowerBlue, Color.DarkBlue);
        }

 

But how can I change the color of the Tab title? when unselected the text almost disappears, I would like to change to a whiter color

 

Also, this works when the children are Tabbed, how can I implement something similar on titlebar when DockPosition.Left  (or anything else than tabbed) ?

Nadya | Tech Support Engineer
Telerik team
 answered on 15 May 2024
1 answer
73 views

Hello,

We have a RadTreeView control inside a ToolWindow (with Dock = Fill) in a RadDock control. The nodes are added to the tree programmatically and AllowArbitraryItemHeight=false and TreeViewElement.AutoSizeItems=true. There is no ItemHeight set at all. We are sporadically getting an issue where the RadTreeView won’t let the user scroll to the bottom of the tree. We can’t consistently reproduce this error however. Is there any advice you can give how to try figure out what is going on?

Thanks,

Hayley

Nadya | Tech Support Engineer
Telerik team
 answered on 15 May 2024
1 answer
109 views

I have a mdi parent with raddock control, I add new forms and I can use the mouse to change the layout of the mdi child in the parent but I cannot make the layoutMDI to work to change the layout

 

this.LayoutMdi(MdiLayout.TileHorizontal);

Just doing something simple to get the idea

 

     private void Form1_Load(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;
            this.radDock1.AutoDetectMdiChildren = true;

            Form form = new Form2();
            form.Text = "MDI Child 1";
            form.MdiParent = this;
          //  form.Show();

            form = new Form2();
            form.Text = "MDI Child 2";
            form.MdiParent = this;
          //  form.Show();

            form = new Form2();
            form.Text = "MDI Child 3";
            form.MdiParent = this;
          //  form.Show();

            this.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(System.Windows.Forms.MdiLayout.TileHorizontal);
        }

 

Dinko | Tech Support Engineer
Telerik team
 answered on 02 May 2024
1 answer
124 views
Hello,

I have a RadTreeView control and a RadDock control together in a WinForms app. The user needs to be able to drag a node from the RadTreeView to either the DocumentTabStrip part of RadDock or the control thats in a DocumentWindow. How do I tell which part of the RadDock the node is being dropped on? Im currently using the  TreeViewElement.DragDropService to handle the PreviewDragDrop method but the RadDropEventArgs.HitTarget gives me a RadPageViewStripElement regardless of where i drop the node. If I am dropping in the content area of the a document window (floating or docked) how do i get the actual DocumentWindow object itself?

Let me know if more information is required.

Thanks,

Hayley
Dinko | Tech Support Engineer
Telerik team
 answered on 21 Mar 2024
1 answer
159 views

Hi, 

I have a control that is opened as a floating HostWindow. This control is composed of a RadPageView and a RadPanel and all these elements have the margins and paddings set to 0. Also, BorderStyle properties are set to None but I still see the borders there (see image attached).

There is any way to remove these borders?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 05 Feb 2024
2 answers
402 views

I have a RadDock with several MdiChildren/DockWindows. When the user closes one of the tabs I want the focus to be set to the previously active tab.

In the ActiveWindowChanged event I remeber the previous active tab. 

I've tried both the radDock.ActivateMdiChild(Form) and radDock.ActivateWindow(DockWindow) methods

What am I missing?

    bool exists = (Array.IndexOf(radDock.MdiChildren, _currentMdi) != -1);
    if (!exists && _prevMdi != null)
    {
        _currentMdi = null;
        _currentDockWindow = null;
          
        //radDock.ActivateMdiChild(_prevMdi);
        radDock.ActivateWindow(_prevDockWindow);
          
    }
 
_prevMdi = _currentMdi;                   
_currentMdi = (Form) ((HostWindow) e.DockWindow).Content;

_prevDockWindow = _currentDockWindow;
_currentDockWindow = e.DockWindow;

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Dec 2023
1 answer
108 views

Hello!

RadPageView has a setting called "ItemSpacing" that adjusts the gap between RadPageViewPage controls.

Is there any way to get a similar result for RadDock?

 

Cheers!

C

 

Nadya | Tech Support Engineer
Telerik team
 answered on 24 Nov 2023
1 answer
100 views

Hello.

I am using RadRibbonBar (Main Form). I have multiple buttons in ribbon. Each button has different forms. I want dock them inside its Main Form on click. here is an example in below screenshot. I am unable to achieve the requirement.

Please note: The child form should dock exactly below the ribbon form. and also, the cross button (child form close button) should be present right after the tab (Child form name).

Please attach a zip file with a source code.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Sep 2023
3 answers
99 views

Hello everyone! These days, I am doing some research with the RadDock control and encountering a difficulty when I'm trying to completely remove the borders and visually merge individual DockWindow elements. As far as I can see, achieving this requires removing some additional spitter elements, but I haven't had much success so far.

I would appreciate your help with this.

Kind Regards,

Simeon

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Aug 2023
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?