Telerik Forums
UI for WinForms Forum
1 answer
17 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
315 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
21 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
36 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
41 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
1 answer
91 views

Hi,

We have a RadDock with multiple open documents (of type DocumentWindow), like the attached "DocumentsLayout" image.

These documents belong to a specific parent (what we call the "MainFolder"). Once the "MainFolder" is closed, we have a process that closes all opened documents and saves some metadata, including which documents were opened (currently we only save the names of those documents). We want to be able to restore the docking layout and restore the location of those previously opened documents, but we are not sure how to.

Currently, once we get the list of documents that we want to reopen, we restore them with:

public void RestoreDocuments(RadDock radDock, IEnumerable<DocumentWindow> documents)
{
  foreach (DocumentWindow document in documents)
  {
    radDock.AddDocument(document);
  }
}
But of course the docking layout is lost, and all documents are added to the default DocumentTabStrip (even floating ones were added to the main one).

What is the best way to achieve this? We also care about the order they were originally located within the tab strips (i.e. in the image, Document 2 on the left and Document 1 on the right)

Note: We are using version 2018_3_911, but we can upgrade if necessary.

Thank you for your help.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 May 2023
1 answer
54 views

In the image below I have five DocumentWindow (state names) and a ToolWindow (Properties). Following this steps, the ActiveWindowChanged event is called twice from different windows:

  1. make Colorado (tabbed window) the active window
  2. make California (Floating window) the active window
  3. make Properties (ToolWindow) the active window. At this point, the ActiveWindowChanged event is called twice. The first one changes the ActiveWindow from California to Colorado. And the second call changes the ActiveWindow from Colorado to Propeties.

This is making the application shows the Colorado properties instead of the California properties.

Is this the expected behavior? Is there a way to fix it?

I am using UI.for.WinForms.AllControls.Net40 v2022.3.921

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Mar 2023
1 answer
58 views

When I add a new document window as such: docContainer.DockManager.AddDocument(newPage)

The tabstrip that it is created on, the new tab always appears first in the tab list.  I'd like it to appear on the end of all current tabs (the right in my case).  I can't figure it out, any help would be appreciated!

Troy
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 05 Feb 2023
1 answer
60 views

On a brand new Winforms project,

 

1/ Added 1 RadDock, Dock = Fill

2/ In RadDock Advanced Layout Designer, Add several toolwindows using Dockfill new ToolWindow

3/ Save and close Designer

4/ Run Project

When any toolwindow is moved to attempt to dock it freezes with the compass showing but no windows can be moved or docked. Attached image shows frozen state. No errors or anything raised

This is in Windows 11 with net6.0. Is this a bug or am I doing something wrong?

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Dec 2022
2 answers
143 views

We use RadDock.SaveToXml and LoadFromXml to store the current dock state of our WinForms application.

We have a problem that if a user floats a ToolWindow and then reattaches it and then the RadDock SaveToXml is called a new ToolTabStrip appears to be created. This means that when a new ToolWindow is added to the ToolTabStrip (found by name), it is adding the ToolWindow to the wrong ToolTabStrip and the new ToolWindow cannot be seen. 

I am wondering how to fix this and think the best way would be to use an event triggered on re-docking to place the ToolWindow being re-docked in the correct ToolTabStrip. Is there any suggested way to do this or any other solution?

Before floating and re-docking the ToolWindow:

<Telerik.WinControls.UI.Docking.ToolTabStrip SelectedIndex="0" CanUpdateChildIndex="True" Size="200, 994" Location="1, 1" CausesValidation="False" Name="toolTabStrip_Navigation" TabIndex="2" TabStop="False">
      <SizeInfo SplitterCorrection="0, 0" AutoSizeScale="0, 0" />
      <Controls>
        <Telerik.WinControls.UI.Docking.ToolWindow Caption="" AllowedDockState="Docked, Hidden, AutoHide, Floating" PreviousDockState="Docked" Name="twNavigation" Size="192, 960" Location="4, 30" AccessibleDescription="Explorer" AccessibleName="Explorer" Font="Microsoft Sans Serif, 8.25pt" Text="Explorer" />
      </Controls>
    </Telerik.WinControls.UI.Docking.ToolTabStrip>

 

After re-docking the ToolWindow:

 <Telerik.WinControls.UI.Docking.ToolTabStrip SelectedIndex="0" CanUpdateChildIndex="True" Size="200, 994" Location="1, 1" Name="DockTabStrip3" TabIndex="4" TabStop="False">
      <SizeInfo SplitterCorrection="0, 0" AutoSizeScale="0, 0" />
      <Controls>
        <Telerik.WinControls.UI.Docking.ToolWindow Caption="" AllowedDockState="Docked, Hidden, AutoHide, Floating" PreviousDockState="Docked" Name="twNavigation" Size="192, 960" Location="4, 30" AccessibleDescription="Explorer" AccessibleName="Explorer" Font="Microsoft Sans Serif, 8.25pt" Text="Explorer" />
      </Controls>
    </Telerik.WinControls.UI.Docking.ToolTabStrip>
    <Telerik.WinControls.UI.Docking.ToolTabStrip CanUpdateChildIndex="True" Size="200, 994" Location="1, 1" CausesValidation="False" Name="toolTabStrip_Navigation" RightToLeft="No" TabIndex="2" TabStop="False">
      <SizeInfo SplitterCorrection="0, 0" AutoSizeScale="0, 0" />
    </Telerik.WinControls.UI.Docking.ToolTabStrip>
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Nov 2022
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
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
Menu
RichTextEditor
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Barcode
Styling
ColorBox
PictureBox
Callout
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?