Telerik Forums
UI for WinForms Forum
1 answer
78 views

I have a RichTextEditRibbonBar and RadRichTextEditor, linked together. I'm using this as an email compose window, so I hid most of the tabs, just keeping Home, Insert, and Page Layout. After doing so though, the ribbon defaults to showing the Page Layout tab. I added some code on the form load event to select the Home tab, but if I select a table in the email, bringng up the Table Tools context ribbon, when I leave the table (click somewhere else in the editor) it jumps to Page Layout again. 

Any suggestions, as its quite annoying. Designer code below:


        ctlMenu.AssociatedRichTextEditor = txtMessage
        ctlMenu.Location = New System.Drawing.Point(0, 0)
        ctlMenu.Name = "ctlMenu"
        ctlMenu.Size = New System.Drawing.Size(1028, 176)
        InboxControlStyler.SetStyleSettings(ctlMenu, New Infragistics.Win.AppStyling.Runtime.InboxControlStyleSettings(Infragistics.Win.DefaultableBoolean.Default))
        ctlMenu.TabIndex = 0
        ctlMenu.TabStop = False
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Text = "References"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Name = "tabReferences"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(4), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Text = "Mailings"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(4), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(4), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Name = "tabMailings"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(5), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Text = "Review"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(5), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(5), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Name = "tabReview"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(6), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Text = "View"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(6), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(6), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Name = "tabView"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(7), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Text = "Developer"
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(7), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        CType(ctlMenu.GetChildAt(0).GetChildAt(4).GetChildAt(0).GetChildAt(0).GetChildAt(7), Telerik.WinControls.UI.RichTextEditorRibbonUI.RichTextEditorRibbonTab).Name = "tabDeveloper"

Dinko | Tech Support Engineer
Telerik team
 answered on 05 May 2026
1 answer
105 views
Is it possible to add a setting that changes the color of the StepProgressBar connection when it is completed?
I would like to set this manually rather than through a theme.
Example: gray → blue
Nadya | Tech Support Engineer
Telerik team
 answered on 28 Apr 2026
1 answer
60 views

I must be missing something very basic here. I added a RadToggleSwitch to my form and I want it to slide between On and Off like this:

I would have thought that this code would do it:

radToggleSwitch1.OffElement.Text = "Off";
radToggleSwitch1.OnElement.Text = "On";

However, its appearing like this:

I'm sure I'm missing something simple. Any ideas?

Thanks

Carl

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Apr 2026
2 answers
69 views

Hello,
I’m working with a RadPageView in Strip view mode and I need to color each tab (page) individually. The coloring works, but I’m facing two issues:

1. Selected tab color – I want to change the tab’s color when it becomes selected. I tried handling this in SelectedPageChanging, but I’m unable to restore the previous color correctly.

2. Font color – I need to adjust the text color based on the tab’s background (white text for dark tabs, black text for light tabs).

Is this possible to achieve?
Thank you for your help.

Radek

Radek
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 27 Apr 2026
1 answer
104 views

Hello,
I’m developing an OOABL application using the Telerik GridView component.
How can I add an image to the top-left corner of the grid header?
And how can I add a context menu when the image is clicked?
Thank you for your feedback.

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 16 Apr 2026
1 answer
200 views

I'm using the...

AllowRowReorder = True

...setting in a grid and simply need to know if the user drags and drops a row within the same grid. What event do I need to catch to deal with this please....?

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Apr 2026
1 answer
74 views

Hello,

I am using the Dock component.

I have added 3 “documentWindows”.

In each “documentWindows”:

- 1 grid

- buttons: save, cancel, create, edit and delete

- fields

I would like to disable the other “documentWindows” when I enter create, edit or delete mode.

And to re-enable them when I save or cancel.

E.g.: If I am in “documentWindows1” and click the “edit” button, then “documentWindows2 and 3” are disabled.

If I confirm or cancel, then “documentWindows2 and 3” are enabled.

Thank you for your feedback.

Translated with DeepL.com (free version)

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Apr 2026
1 answer
75 views

If I have to dynamically add data to the Treemap, I'm usually clearing the items at the start of this process. Then, when I add new items in the tree map remains totally clear on the 2nd time data is loaded. The first time is fine.

I've been looking for a Refresh method but this does not assist at all.

My current codes goes something like...

With Me.treList
    .Items.Clear()

    If rec.RecordCount > 0 Then
        Do Until rec.EOF
            .Items.Add(rec("Department").ToString, CDbl(rec("TotalDepartmentStock")))
            rec.movenext
        Loop
    End If

    .Refresh()
End With

Thank you in advance.

Simon

Simon
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 15 Apr 2026
1 answer
120 views

Hello everyone,
I'm encountering the following issues when using RadDock 2025 Q2. Any solutions?
1. When the main form changes, the layout doesn't auto-refresh, leaving blank space or causing docking windows to be overlapped.
2. When closing windows, the layout doesn't auto-refresh, leaving blank areas.
3. Splitter bars sometimes cannot be dragged.
4. All windows inherit from DocumentWindow (or ToolWindow) and implement IRequireServices. Window creation and construction use DI injection.

The management code used and the demo GIF are attached in the package.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Apr 2026
2 answers
326 views

I have 2 grids with drag and drop capability, one of them is just a simple grid with 2 columns, the other grid is a grid with 3 Hierarchical Templates that have 3 associated BindingSources.

How can I, when dragging and dropping from the simple grid to the hierarchical grid, determine which Template I am dragging the row to and add it to that Template/BindingSources?

I used exactly the example code you have here (https://docs.telerik.com/devtools/winforms/controls/gridview/rows/drag-and-drop), and indeed everything works.

I just wanted to understand if it's possible to know which Template the row is being dragged to and add it exactly to that Template.

F3M
Top achievements
Rank 2
Iron
Iron
 answered on 13 Apr 2026
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
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)
Form
Chart (obsolete as of Q1 2013)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?