RadControls for WinForms
http://docs.telerik.com/devtools/winforms/introduction
Support
Main page: http://www.telerik.com/support/winforms
Submit Ticket - Product list: http://www.telerik.com/account/support-tickets/available-support-list
Submit Ticket – WinForms: http://www.telerik.com/account/support-tickets/contact-support-team.aspx?odid=3559243&pid=523
http://www.telerik.com/account/support-tickets/new-support-ticket.aspx
Forums – http://www.telerik.com/community/forums/winforms.aspx
Knowledge Base – http://www.telerik.com/support/kb/winforms.aspx
Code Libraries – http://www.telerik.com/community/code-library/winforms.aspx
As of Dec 2015 all our projects will move to .NET version 4.5.2.
Per this article: “As previously announced, starting January 12, 2016 Microsoft will no longer provide security updates, technical support or hotfixes for .NET 4, 4.5, and 4.5.1 frameworks. All other framework versions, including 3.5, 4.5.2, 4.6 and 4.6.1, will be supported for the duration of their established lifecycle.”
As of 07/28/2021 we are using version: 2020.1.113.40
You can download ‘Older Versions’ of specific packages from http://www.telerik.com/account/your-products/download-list.aspx
Since we will all be on the same version, all projects will use Telerik from the GAC (“UI for WinForms, v. XXX (Dev) [GAC]”)
Here is a video on the process:
\\192.168.93.1\KB_MiM\Telerik\20151013) Telerik Q2 update install each October.mp4
After the new Telerik version install we will need to Upgrade the Common Library (1st) then all our Solutions to use this newest version.
Here is a video on the Telerik Solution ‘Upgrade Wizard’:
I'm only building UIs so my work will be here: LS.ProductName\ProjectName.Presentation.
UPDATE: Going back to .NET Framwork projects. There is a bug in VS 2022 that breaks the toolbox for Core controls.
4. Click <Finish>
5.Setup rfrmMain
See this video: \\192.168.93.1\KB_MiM\Telerik\20140820) Telerik Systray App with Larry\20140820) Telerik Systray App with Larry.mp4
My sample project: \\192.168.93.1\KB_MiM\Telerik\LS.TelerikSystrayApp
Insert this code:
4. Now hide rfrmMain so the user only sees the Systray icon. Add this code right after InitializeComponent(); in the public rfrmMain().
// Hide rfrmMain by default for a SysTray app WindowState = FormWindowState.Minimized; //minimize rfrmMain ShowInTaskbar = false; // ...and don't show it on the TaskBar
7. Open the rfrmMain in design view, select each of the rcmMain menu items you create from the Properties tool window dropdown. Switch from Properties to Events and add a ‘Click’ event handler.
8. ### What next??
Per this post you can bind a RadContextMenu (rcmMain) to the NotifyIcon control. http://www.telerik.com/forums/radcontextmenu-notifyicon
Add an ‘icon’ (must be *.ico) to the Windows NotifyIcon (niMain) control so it will be visible in the systray.
Start frmMain hidden
public frmMain() { InitializeComponent(); //Visible = false; %%//%% hide the form by default - THIS METHOD DOESN'T WORK. Do this instead: WindowState = FormWindowState.Minimized; %%//%% minimize frmMain ShowInTaskbar = false; %%//%% ...and don't show it on the TaskBar
Pop the systray menu on mouse click (bind the RadContextmenu to the NotifyIcon)
//pop systray menu on mouse click void niMain_MouseDown(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Left) %%//%% click left mouse button on SysTray icon to pop the menu rcmMain.Show(MousePosition); %%//%% bind the RadContextmenu to the NotifyIcon }
Show/Hide frmMain on Minimize
### I’m not sure the following really works. Test it. I had to minimize and set ShowInTaskbar = false; above.
Outline View: “View | Other Windows | Document Outline” or <Ctrl><W>, <U>
Code Autoformat <Ctrl><K>,<D> (only works if there are no errors in the code)
Video: \\192.168.93.1\KB_MiM\Telerik\20160204) Add Icon Graphics to a VS Solution (Project Resource File).mp4
Click the <…> button on the ‘Image’ property of a radCommandBar button item (for example) and…
Solution Structure:
Project Structure:
- Contracts / Interfaces - the interfaces; I don't usually use the “I” prefix as I dislike the (bad) Hungarian notation and also I want *these* to be the primary concepts in the application
- Models - the (usually) dumb classes, objects that just carry data and usually have no / very few methods and should have no dependencies
- Implementations / Services - the implementations of the interfaces
[ Source File Structure ]
// TODOs
// Namespace starts here
// CLASS STARTS HERE
// Static methods, if any
// Events, if any
// Constructor
// Public Properties
// Public Methods
// ← an empty comment line
// Private Fields
// Private Properties
// Private Methods
// ← an empty comment line IF there are any event handlers
// Event Handlers
// use this ordering:
// _Load
// _Shown
// _Closing
// _Close
// CLASS ENDS HERE
// Namespace ends here
// DONE TODOs
http://www.dotnetperls.com/todo
Create tasks in the source code which appear on the VS ‘Task List’ pane.
//TODO: LARRY - work on version with no bugs
As a coder completes each TODO change the ‘TODO’ to ‘DONE’ and leave the comment in place to act as future documentation.
These tasks will appear in event handlers and stubbed out methods.
We will keep other tasks that define other functionality in a file named ‘XXXX—Spec-Todos.cs’ in the Project where ‘XXXX’ is the code file that the Spec-Todos file describes. For example ‘rfrmMain—Spec-Todos.cs’ might contain TODO entries describing the big steps that must be completed in the application. It would also contain TODOs describing code for controls which aren’t responding to an event (i.e. how a form will be setup, or details of how a GridView is to be configured). Another example of this file could be ‘Program—Spec-Todos.cs’. Here’s anexample of a TODO in a ‘rfrmMain—Spec-Todos.cs: file:
//TODO: Marcel - 'ucGridStatusModuleStatusConsole' - Populate the GridView with these columns in the following order. // Each of the values are provided by the plugin (module) via some way they report their settings and status. // Some of these values will be defined on the plugin Options form where they will be defaulted to design time values. // 'Enable' - Checkbox column. Unchecked disables all activity for this module. // 'Category' - A text string name assigned to each category. // 'Module' - The module name reported by each plugin.
NOTE: When adding a ‘XXXX—Spec-Todos.cs’ to a Project right click the Project | Add | New Item | and choose ‘Code File’ for a blank .cs file, or simply press <Shift><Alt><C> to add a class.cs file, then delete the stubbed out contents.
### At some point we may add date stamps to track the original creation date and completion date of a TODO.
Go from something like this: ‘MiM.ForensicDataCollector.Presentation.exe’ to something like this: ‘ForensicDataCollector.exe’
What about our DLL folder plan? How do you adjust References and “Copy Local”?
For each Telerik assembly reference in the Solution Explorer, open its context menu, click on properties and in the property grid set the Copy Local property of the reference to True. Thus these Telerik assemblies will be copied to your Release/Bin, Debug/Bin folders
When you deploy your application, you may prefer to do it as a single executable rather than an executable referencing many external assemblies. In this case, you need to ILMerge the assemblies with the executable. Here is a link to MSDN from where you can download the ILMerge executable: Download ILMerge
ICO files can have multiple sizes of the icon image contained within it by using layers. You do this so that the 16×16 size is used for the app's top bar but the 32×32 size version is used when showing open apps via Alt-Tab.
Here’s an explaination and some tool options to make multisize ISO files.
http://stackoverflow.com/questions/4354617/how-to-make-get-a-multi-size-ico-file
Upload a larger (<4MB) square aspect ratio PNG file and this will provide a multi-rez download ICO file.
https://www.icoconverter.com/
Need to add a rmi for Check for Updates. The updater.exe will live in the same location as the application exe file.
Use Telerik .NET (4.x) forms to our WinForms projects. LS.Common for WinForms doesn’t yet support .NET Core.
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; // Control the type of form border
this.ControlBox = false; // hide the form control buttons this.Text = String.Empty; // hide (collapse) the form titlebar this.Text = " "; // show the form titlebar but display no text
Center a form on screen
this.StartPosition = CenterScreen; // Center the form on screen when it is opened
CenterToScreen(); // move the form to center screen while it is already open
For a fixed size window, you still use FormBorderStyle.SizableToolWindow. If you want to really enforce the size, you could also set MinimumSize equal to MaximumSize on the form.
Force a form to a specific size
int CollapsedWidth = 505; // default size when collapsed (History is NOT visible) int CollapsedHeight = 258; public rfrmMain() { InitializeComponent(); Width = CollapsedWidth; // set the default collapsed form size Height = CollapsedHeight; …
Resize a form to display a hidden area based on a Toggle button (from ‘LS.GIT_TM_TimeTracker’)
Windows application Forms and UserControls must use the same autoscalemode. Different settings may cause the Form or UserControl (and their contents) to scale/draw incorrectly at runtime. This issue may not be visible in Visual Studio. Always use AutoScaleMode.None for the default setting within any design work.
For example:
Use Search/Replace to correct this solution-wide.
The primary form they see when the app opens (after any splash screen, etc. Others are frmAbout, etc.)
http://docs.telerik.com/devtools/winforms/forms-and-dialogs/templates/templates
The Visual Studio templates that install with Telerik UI for for WinForms let you add RadForm and ShapedForm to your application without any coding steps. There are also two other specialized forms, RadRibbonForm that contains a built-in RadRibbonBar and RadAboutBox that is an enhanced, themeable version of the regular AboutBox.
http://docs.telerik.com/devtools/winforms/forms-and-dialogs/form/form
http://www.telerik.com/help/winforms/forms-and-dialogs-form-getting-started.html
http://www.telerik.com/community/forums/winforms/forms-and-dialogs.aspx
The RadForm control is an extended standard Windows Form that fully supports the Telerik Presentation Framework (TPF) and the Telerik's theming mechanism. The control is built of a RadTitleBar component and a border that can be easily designed in the Visual Style Builder. RadForm also supports MDI (Multiple Document Interface).
Note: RadForm supports just one shape. See ShapedForm for more advance shapes.
http://www.telerik.com/help/winforms/ribbonbar-overview.html
http://www.telerik.com/community/forums/winforms/forms-and-dialogs.aspx
http://www.telerik.com/community/forums/winforms/ribbonbar.aspx
The RadRibbonForm control is designed to host a RadRibbonBar control and mimic the Microsoft Office 2007 UI form style. This control automatically detects whether it runs under Windows Vista and Desktop Window Manager Effects are enabled and adjusts itself to make use of these effects just as Microsoft Office 2007 applications do.
Really the thing to do here is add a RadRibbonForm to the Solution rather than adding a RadRibbonBar to a regular RadForm.
A RadForm preloaded with a RadRibbonBar, a “System.Windows.Form.Panel” in the middle and a RadStatusStrip on bottom. You can drop the panel and replace with a RadPanel if you want.
See RadRibbonBar for more info
For a RadRibbonForm the 'Document Outline' view will show:
Notice the order. The panel1 is the main container and is followed by the radStatusStrip1 with the radRibbonBar1 at the bottom. Do not change this order!
http://www.telerik.com/help/winforms/forms-and-dialogs-statusstrip-overview.html
http://www.telerik.com/community/forums/winforms/forms-and-dialogs.aspx
RadStatusStrip provides a status area that can be composed of any number of RadElement types: buttons, repeat buttons, image buttons, labels, panels, progress bars and separators. The elements can be laid out along the horizontal or wrapped to additional rows.
The following element types can be added to RadStatusStrip.Items collection:
Properties
If you Dock a panel (or TableLayoutPanel) control to the form and it appears behind the RadStatusStrip, collapse the panel in the Document Outline, then drag it above the RadStatusStrip like this:
http://www.telerik.com/help/winforms/forms-and-dialogs-templates-radaboutbox-overview.html
http://www.telerik.com/products/winforms/aboutbox.aspx
This isn’t a control in the toolbox. It is a form template you can add to a project. Like any other form, the RadAboutForm may be resized and configured in the IDE.
The Telerik version looks just like the standard version that comes with VS.
The form contains a TableLayoutPanel with a logoPictureBox (image) in the left column, an <OK> on the lower right and the following rows in the right column:
These text values are populated from the “Project | Properties | Application | <Assembly Information> | Title”.
The form title bar is populated from the “Project | Properties | Application | <Assembly Information>”.
NOTE: The default application icon is also set on the “Project | Properties | Application” tab.
The logoPictureBox is ‘Size’: 122, 259 with ‘SizeMode’: StretchImage. The ‘logoPictureBox.Image’ property defines the graphic. The default Telerik sample image size is 120×262.
The code behind “rfrmRadAboutBox”automatically contains some default code. I’ve modified it here for our purposes so paste this instead):
Insert the Trademark ® by holding <Alt> and typing 0174 on Numpad.
NOTE: To access the Assembly info (for Product Name, etc), you must start by adding a Project Reference to:
‘X:\DevGIT\ls.common\LS.Common.Utilities\bin\Debug\LS.Common.Utilities.dll’
Then add using LS.Common; // provide access to the Assembly to any .cs file that requires access to the Assembly.
Alternatively, you can also set the defaults in the Form Load event.
private void rfrmRadAboutBox_Load(object sender, EventArgs e) { Text = $"About {SystemSettings.AssemblyData.Title}"; // AboutBox form.text title from Assembly text ("About %title%") }
The RadAboutBox pulls its info from the Assembly information (from the Project Properties).
Per the comment you can edit the AboutBox content by
Display the RadAboutBox form like any other:
private void rmiAbout_Click(object sender, EventArgs e) { using (rfrmRadAboutBox rfrmRadAboutBox = new rfrmRadAboutBox()) // create an instance of the form { rfrmRadAboutBox.ShowDialog(this); // then show/opens it } }
Note the text from the Assembly Info dialog above
Change the AboutBox Picture
In the design view, click the picture box element and view properties. Select to change the image and select project resources. Import image like below.
http://docs.telerik.com/devtools/winforms/forms-and-dialogs/shapedform/shapedform
The ShapedForm control allows you to design and display a Windows form with any conceivable shape. You can couple this control with the RadTitleBar control to easily add forms with a completely custom look and feel.
Dock - Property on various controls to fill a space (container)
Anchor - Anchor to any or all 4 sides of container to auto-resize with container. Works well within a TableLayoutPanel control.
NOTE: Instead of LinkLabel see the <Links> button on the ‘MarkupEditor’ behind the ‘RadLabel.Text’ property dropdown. Enter a url there and the link works with no extra code.
Here’s code to open the default browser to a site on LinkLabel click
Not a Telerik control. Use table to specify control layout on form.
Quick Tasks Button
'Edit Rows and Columns'
'Columns'
'Rows'
</p>// Columns and rows are 0 based so this references the 2nd column: TableLayoutPanel1.ColumnStyles[1]
// Hide an entire TableLayoutPanel - good to hide a subpanel in a single master tlp cell
tableLayoutPanel1.Visible = false;
// Hide/Show TableLayoutPanel row/column (works for SizeType = Absolute (pixels) or Percent)
tableLayoutPanel1.RowStyles[8].Height = 0; // Hide row 8 (9th) by setting height to 0
tableLayoutPanel1.RowStyles[8].Height = 33; // Show row 8 (9th) by setting height to 33 (good size for a button)
TableLayoutPanel1.ColumnStyles[1].Width = 0; // Hide column 1 (2nd) by setting width to 0
Create a user control property that shows/hides a column based on the size of 2 buttons inside a child layout panel.
[Category("Legality Software")] public bool ViewsExpandCollapseAllVisible { get { return tlpQueryListTree.ColumnStyles[2].Width == rbtnTreeExpandAll.Width + rbtnTreeCollapseAll.Width + 14; } // return true if col currently as wide as buttons + 14px buffer set { if (value) tlpQueryListTree.ColumnStyles[2].Width = rbtnTreeExpandAll.Width + rbtnTreeCollapseAll.Width + 14; // Show the column (set size to width of buttons + 14px buffer) else tlpQueryListTree.ColumnStyles[2].Width = 0; %%//%% Hide the column (set width = 0) } }
Also see Setup Properties Configurable in the VS IDE for more show/hide column/row options as uc Properties via the IDE
// Set row/column Size Type to Absolute or Percent
tableLayoutPanel1.RowStyles[0].SizeType = SizeType.Percent;
tableLayoutPanel1.RowStyles[0].SizeType = SizeType.Absolute;
TableLayoutPanel1.ColumnStyles[1].SizeType = SizeType.Absolute;
Whenever you try to drag a control or block of controls from one TableLayoutPanel cell to another you may find the controls land in the wrong cell. Often creating a new tlp rox and dropping the controls there.
This is because the controls you are moving probably have a 'ColumnSpan' or 'RowSpan' property setting that causes the control(s) to occupy more than one cell. When you drag it VS creates a new tlp row to hold the extra cells required by the Span property.
The solution is to remove any 'ColumnSpan' or 'RowSpan' settings
http://www.telerik.com/help/winforms/layoutcontrol-overview.html
With RadLayoutControl you can quickly design and arrange your controls in complex layouts and it will automatically keep the layout consistent at run-time. RadLayoutControl has an intuitive and straight-forward design time experience. When resizing the form, it keeps its layout consistent by proportionally resizing the controls in it while considering their MinSize and MaxSize settings. RadLayoutControl also allows end-user customizations and Save/Load layout via the Customize context menu.
Main features of the control:
Drag this regular Windows (non-Telerik) control to any spot on the form (it will not be visible). The name doesn’t matter.
It will add a ‘ToolTip on toolTip’ property to the Rad Controls that don’t already have a ‘ToolTip’ property.
Windows Common Control shows a picture.
RadMarkupEditor and RadMarkupDialog require a reference to Microsoft.mshtml assembly and if you need to use them at Run Time you will need to distribute this assembly to the end user computers as well. You can find further information about that in this external resource:
http://msdn.microsoft.com/en-us/library/w0dt2w20.aspx
You do not need to do anything on your developer machine, because Visual Studio provides the required assembly. Also if your application does not use the editor or the dialog, you do not need a reference to this assembly.
http://www.telerik.com/help/winforms/forms-and-dialogs-templates-radaboutbox-overview.html
This isn’t really a control in the toolbox. It is a form template you can add to a project.
For more info see this part of the doc: RadAboutBox
http://www.telerik.com/help/winforms/forms-and-dialogs-messagebox-overview.html
http://www.telerik.com/help/winforms/forms-and-dialogs-messagebox-parameters.html
RadMessageBox displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. You cannot create a new instance of the RadMessageBox class. To display a message box, call the static method
RadMessageBox.Show. The title, message, buttons, and icons displayed in the message box are determined by parameters that you pass to this method.
RadMessageBox supports details section, shown by specifying the details text in the Show method parameters:
RadMessageBox.Show("Message text", "Title/Caption Text", MessageBoxButtons.AbortRetryIgnore, "Details Text");
http://docs.telerik.com/devtools/winforms/forms-and-dialogs/colordialog/colordialog
RadColorDialog is a lightweight UI component that allows users to select from RGB or HEX color models. The color palettes are skinnable and highly configurable. It offers a great amount of flexibility in selecting colors from web, system, and basic colors together with the ability to fine-tune and pick colors directly from the screen.
Start every form with some kind of container. Could be a RadPanel at minimum.
http://www.telerik.com/help/winforms/dock-overview.html
http://www.telerik.com/community/forums/winforms/dock.aspx
http://www.telerik.com/help/winforms/dock-object-model-tabs-and-captions.html
http://www.telerik.com/help/winforms/dock-architecture-and-features-understanding-raddock.html
Video: http://www.telerik.com/videos/winforms/getting-started-with-raddock-for-winforms
Video: http://www.telerik.com/videos/winforms/introducing-the-new-raddock-for-winforms
Container for collapsable/dockable panels called ‘ToolWindows’ (like the “Properties” panel in VS). This is what holds the queries in SQLL - NOT TRUE???. Once the container exists you use “Dock New Window to Right (etc)” from the Quick Tasks Button. Also try “Show Advanced Layout Designer”.
A new RadDock can directly hold a DocumentContainer and ToolTabStrips which contain ToolWindow(s) and RadSplitContainers as required. The DocumentContainer holds a DocumentTabStrip which in turn holds DocumentWindow(s). You must add at least one of these before you can add other objects.
http://www.telerik.com/forums/tabstrip-sizeinfo-not-changing-the-size
// You must set both SizeMode and AbsoluteSize properties window4.TabStrip.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute; window4.TabStrip.SizeInfo.AbsoluteSize = new Size(150, 0); // absolutely 150 pixels wide window2.TabStrip.SizeInfo.SizeMode = SplitPanelSizeMode.Relative; window2.TabStrip.SizeInfo.RelativeRatio = new SizeF(0, 0.33f); // relatively 1/3 of the other window
You will probably have to select the Dock control from the VS ‘Document Outlline’
this.radDock1.DocumentTabsAlignment = TabStripAlignment.Left; // Show the documentWindow tab strip on the left edge this.radDock1.DocumentTabsTextOrientation // this.radDock1.DocumentTabsVisible = False; // Hide the tabs for all documents this.radDock1.DragDropAllowedStates = All // Docked, TabbedDocument, Hidden, AutoHide, Floating
this.radDock1.MainDocumentContainerVisible = false;
documentTabStrip1.TabStripVisible = False; // Hide the DocumentTabStrip (to hide the doc window tabs and global close button)
Individual Document Windows, like source files in VS You can put a RadSplitContainer in a documentWindow, but not right in the RadDock
documentWindow1.CloseAction = Telerik.WinControls.UI.Docking.DockWindowCloseAction.Hide; // CloseAction = Hide, else Window is destroyed on close request documentWindow1.DockState == DockState.Hidden // Hide documentWindow documentWindow1.DockState == DockState.TabbedDocument // Show documentWindow documentWindow1.DockState = documentWindow1.DockState == DockState.Hidden ? DockState.TabbedDocument : DockState.Hidden; // Toggle Show/Hide DockWindow[] hiddenWindows = this.radDock1.DockWindows.GetWindows(DockState.Hidden); // Get a collection of all Hidden documentWindows
Here’s another way:
//Hide document window tab on main form documentWindow3.TabStripItem.Visibility = ElementVisibility.Collapsed;
ToolTabStrip – rdtwts (child container)
Header strip above a ToolWindow with optional caption text and control buttons Click on the right end (on the ‘X’) to select the tool window tab strip
this.toolTabStrip1.Text = ‘This is irrelevant!’; // The Text on the ToolStrip is controlled by the ToolWindow.Text property this.toolTabStrip1.CaptionVisible = false; // Hide the caption of a single ToolTabStrip this.radDock1.ShowToolCloseButton = false; // Hide the ToolWindow close button this.AllowedDockState = AllowedDockState.AutoHide | AllowedDockState.Docked; // Force stay docked and not allow the user to move it this.DockState = Telerik.WinControls.UI.Docking.DockState.AutoHide; // Collapse/AutoHide the ToolWindow (not visible in the IDE) //Options: AutoHide, Docked, Floating, Hidden, TabbedDocument
Window dockable to any of the 4 sides by default, like VS Properties window
See this article on AllowedDockStates to control floating, etc. And this: http://www.telerik.com/forums/909245-disable-the-floating-feature
Click in the tool window body (below the ToolTabStrip)
this.ToolCaptionButtons = ToolStripCaptionButtons.AutoHide; // Shows only the stickpin. Options: // None – no buttons // Close – if you close you can’t get it back // Autohide – only show the stickpin // SystemMenu – drop down with multiple options // All
this.radDock1.ToolTabsAlignment = TabStripAlignment.Right; // Show the ToolWindow tab strip on the left edge this.radDock1.ToolTabsVisible = false; // Hide the ToolWindow tab area on the RadDock ContextMenuStrip –shortcut menu to display on right click **toolWindow.Caption** – Text header that appears on ToolTabStrip above the ToolWindow. **toolWindow.text** – Text in the expand button visible when the ToolWindow is unpinned. //(.Caption is the text in the ToolTabStrip above the ToolWindow.)
// Only allow ToolWindows to resize, autohide and pin ### Fix this code sample up – wrong syntax
// From: http://www.telerik.com/forums/how-to-disable-toolwindow-floating-after-double-click-header
Me.ToolWindow1.AllowedDockState = Telerik.WinControls.UI.Docking.AllowedDockState.All And Not Telerik.WinControls.UI.Docking.AllowedDockState.Floating
http://www.telerik.com/help/winforms/pageview-overview.html
http://www.telerik.com/community/forums/winforms/page-view.aspx
Video: http:%%//%%www.telerik.com/videos/winforms/getting-started-with-radPageView
RadPageViewPage.ViewMode // Types (ViewMode) of page displays. Options are:
Quick Tasks Button
Scrollable Page Contents in non-Strip View Mode (as in dbEntreé)
NOTE: You cannot hide the PageView tabs by changing a design time property. You must edit the code to set the 'ElementVisibility.Collapsed' property for each RadPageView page as shown here:
Hide all RadPageView Pages/tabs
// Stick this right after “InitializeComponent();” on the form or UC. // Hide all RadPageView 'Page' tabs foreach (Telerik.WinControls.UI.RadPageViewPage item in radPageView.Pages) { item.Item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; }
Hide any RadPageView Page/tab with 'Name' = “Hidden” or where 'Text' contains “Hidden”
// Hide any RadPageView Page with 'Name' = "Hidden" or where 'Text' contains "Hidden" (just the tab, not content) foreach (Telerik.WinControls.UI.RadPageViewPage item in radPageView.Pages ) { if (item.Text.ToLower().Contains("hidden") == true || item.Name.ToLower().Contains("hidden") == true) item.Item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; // Must use lower case text }
Hide a specific RadPageView Page/tab by name
foreach (Telerik.WinControls.UI.RadPageViewPage item in radPageView.Pages) // Hide a RadPageView Page with a specific 'Name' if (item.Name.Contains("rpvpContactSupport") == true) item.Item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Or multiple pages…
foreach (RadPageViewPage item in rpvListViewSettings.Pages) // Hide a RadPageView Page(s) with specific 'Name'(s) if (item.Name.Contains("rpvpListSavedViews") || item.Name.Contains("rpvpListToolbar")) item.Item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Hide a specific RadPageView Page/tab with specific tab text
foreach (Telerik.WinControls.UI.RadPageViewPage item in radPageView.Pages) // Hide a specific RadPageView Page/tab with specified tab text if (item.Text.Equals("Contact Support") == true) item.Item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Select the currently configured DefaultPage
rpvListViewSettings.SelectedPage = rpvListViewSettings.DefaultPage; // select the currently configured default page
Select the 1st Page on the RadPageView by default
// Include the following right after “InitializeComponent();” on the form or UC. radPageView.SelectedPage = radPageView.Pages[0]; %%//%% Select the 1st Page on the RadPageView by default // This isn't necessary if you use the radRibbonBar1_CommandTabSelected method to link RadRibbonTabs to specified RadPages (by Tag) // If you use that method the page will be selected automatically when the 'Select the 1st tab on the RadRibbonBar by default' code executes
Select the 1st Visible (not hidden) Page on the RadPageView by default
Select the specified Page (by ‘text’ name) on the RadPageView by default
Add example of selecting rpvp Page by RadioButton selection
Create an entry based on this video: 192.168.93.1\KB_MiM\Telerik\20160110) Radio Buttons control PageView Pages (tabs).mp4
This is from the TreeDataExtracter project
### Add example of selecting (syncing) rpvp Pages with the currently selected radRibbonBar1 CommandTabs
RadPageViewPage – rpvp
RadPageView Child Pages
Add Pages
Edit Page Properties
http://www.telerik.com/help/winforms/splitcontainer-overview.html
http://www.telerik.com/community/forums/winforms/split-container.aspx
Building a layout of RadSplitContainers programmatically
Container for resizable panels. Once the container exists you use “Add Panel” from the Quick Tasks Button.
Quick Tasks Button
The container SplitContainerLayoutStrategy instance handles all layout requests from its owning container. Each SplitPanel instance has a member of type SplitPanelSizeInfo, which is used by the strategy to determine the size and position of this panel on its hosting container. The ‘SizeMode’ property (under ‘SizeInfo’) offers four different sizing modes per panel basis:
Properties
NOTE: The original arrow graphic will still be shown behind the new graphic so this may not be the best method. More on this here: http://www.telerik.com/forums/custom-splitter-image
SplitPanel – rscp ‘Collapsed’ – True = hide the current panel
// Lock the Splitter the user can not resize the panels (add to the Load event of form) this.radSplitContainer.Splitters[0].Fixed = true; // Hide & Disable the Splitter (add to the Load event of form) // NOTE: This hides the splitter buttons but does not hide or diable the splitter itself. // See: http://www.telerik.com/forums/disable-splitter this.radSplitContainer.Splitters[0].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Change Splitter Collapse direction
http://www.telerik.com/forums/change-splitpanel-collapse-direction
// Set the Splitter Width dynamically radSplitContainer.SplitterWidth = 20;
SplitPanel AutoSize
http://www.telerik.com/forums/splitpanel-autosize
Capture the click event on any splitter in a RadSplitcontainer, or the click event on a specific splitter in a RadSplitcontainer
http://www.telerik.com/forums/splitter-click-event
Save and Restore SplitPanel Layout
http://www.telerik.com/forums/radsplitcontainer
http://www.telerik.com/help/winforms/panels-and-labels-groupbox-overview.html
http://www.telerik.com/community/forums/winforms/panels-and-labels.aspx
RadGroupBox control is a group box control with advanced styling options. The primarily usage of this control is to hold a single radio buttons group.
Change the border: http://www.telerik.com/forums/how-to-change-the-border-color-of-radgroupbox-and-contentpanel-of-tabitem
http://www.telerik.com/help/winforms/panels-and-labels-panel-overview.html
http://www.telerik.com/community/forums/winforms/panels-and-labels.aspx
This screenshot demonstrates the use of a border, border width, background with a linear gradient, and Html-like formatted text. Refer to HTML-like Text Formatting for further details.
this.rpnlPanel.PanelElement.PanelBorder.ShouldPaint = false;
// Hide some/selected RadPanel borders this.rpnlPanel.PanelElement.PanelBorder.BoxStyle = BorderBoxStyle.FourBorders; // enable border segments this.rpnlPanel.PanelElement.PanelBorder.TopWidth = 0; // hide the top border this.rpnlPanel.PanelElement.PanelBorder.BottomWidth = 0; this.rpnlPanel.PanelElement.PanelBorder.LeftWidth = 0; this.rpnlPanel.PanelElement.PanelBorder.RightWidth = 0;
From: http://www.telerik.com/forums/can-radpanel-only-have-bottom-border-or-top-etc
http://www.telerik.com/help/winforms/panels-and-labels-collapsible-panel-overview.html
An expandable panel which can host controls in its content area. The content area can be collapsed, allowing space savings in a WinForms application. RadCollapsiblePanel also gives you control over its ExpandDirection for even greater flexibility.
http://www.telerik.com/help/winforms/panels-and-labels-radscrollablepanel-overview.html
This control is basically just a RadPanel with 2 themable scrollbars to provide more space for child controls.
The scrollbars only appear when a control is outside the viewable area.
The controls resize when the scroller appears so the scrollbar doesn’t obscure part of the controls.
It automatically creates a parent radScrollablePanel.PanelContainer for the ScrollablePanel.
To test the scroller just add some control then set its location outside the viewable area. The scrollbar(s) will appear in the IDE preview.
http://docs.telerik.com/devtools/winforms/panels-and-labels/separator
RadSeparator is a control that gives you the ability to divide your forms into logical parts.
http://www.telerik.com/help/winforms/chartview-overview.html
http://www.telerik.com/support/code-library/winforms/chart
VIDEO: http://www.telerik.com/videos/winforms/getting-started-with-radchartview-for-winforms
VIDEO: http://www.telerik.com/videos/winforms/what-is-new-in-q3-2012-radcontrols-for-winforms (19:12 - 24:12)
RadChartView is a versatile charting component that offers drawing capabilities, user interaction and real-time updates. Its intuitive object model and public API allow complex charts to be easily setup either in design-time or through code. The control is completely data aware and may work in bound or unbound mode, depending on the requirements. Chart types (or series) are organized in hierarchies, depending on the coordinate system, used to plot data points – for example we have CartesianArea (using Cartesian coordinate system) and PolarArea (using polar or radial coordinate system) and PieArea.
NOTE: There is also a RadChart control, which is being phased out. Don’t use it. Here’s a comparison.
Data point Tooltips - http://www.telerik.com/help/winforms/chartview-features-tooltip.html
Chart Title - http://www.telerik.com/help/winforms/chartview-features-title.html
Trackball (threshold indicator line ) – http://www.telerik.com/help/winforms/chartview-features-trackball.html
Smart labels - http://www.telerik.com/help/winforms/chartview-features-smart-labels.html
Drill down - http://www.telerik.com/help/winforms/chartview-features-drill-down.html
Changing colors/palettes - http://www.telerik.com/help/winforms/chartview-customization-palettes.html
// Apply a predefined palette of colors this.radChartView1.Area.View.Palette = KnownPalette.Metro;
// Apply a specific palette entry to a specific line. Default is to rotate through the palette colors. lineSeria.Palette = KnownPalette.Flower.GlobalEntries[0]; lineSeria.Palette = new PaletteEntry(Color.Yellow, Color.Red);
// Define your own palette by inheriting from ChartPalette and creating a collection of palette entries public class CustomPalette : ChartPalette { public CustomPalette() { this.GlobalEntries.Add(Color.Yellow, Color.Red); this.GlobalEntries.Add(Color.Yellow, Color.Blue); } }
// Then set the custom palette: this.radChartView1.Area.View.Palette = new CustomPalette();
Custom rendering - http://www.telerik.com/help/winforms/chartview-customization-custom-rendering.html
Chart Animation - http://www.telerik.com/forums/animated-chart
“RadChartView contains a mechanism that allows an animation and the animation is built-in the theme. You can create your own animations by either using our TPF Animations or you can use CSS like definition. You can see examples of these approaches in our Demo application that is installed with the controls. You can see a TPF animation in the example RadChartView»Chart Types»Line & Area and a CSS animation in the example RadChartView»Chart Types»Bar.”
http://www.telerik.com/help/winforms/gridview-overview.html
http://www.telerik.com/community/forums/winforms/gridview.aspx
http://www.telerik.com/support/code-library/winforms/gridview
Video (Webinar): http://www.telerik.com/videos/winforms/radgridview-for-winforms-webinar
Video: RadGridView for WinForms Hierarchy Overview
Video: Binding RadGridView for WinForms to a Self Referencing Hierarchy
See: ‘\\192.168.93.1\KB_MiM\Telerik\20170307) Demo of RadGridView Config by XML.mp4’
For how to setup user control grid columns and save them via XML.
Properties
radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
Text in a Hyperlink column has this font color: #113E89 (RGB 17, 62, 137)
rgvLog.MasterTemplate.Columns["Message"].AutoSizeMode = BestFitColumnMode.DisplayedDataCells; // resizing is based on the values *visible on the screen* and works the same even with manual resizing (double-click on the column edge) rgvLog.MasterTemplate.Columns["Message"].AutoSizeMode = BestFitColumnMode.AllCells; // resizing is based on the values in all rows, even those that are not currently visible
Use the ViewCellFormatting event (the color depends on your current form backcolor)
Subscribe to the CellEditorInitialized event and set the GridBrowseEditorElement.ReadOnly property to false. Thus, you will allow the user to enter custom text and perform paste operation as well: subscribe to the CellEditorInitialized event and set the GridBrowseEditorElement.ReadOnly property to false. Thus, you will allow the user to enter custom text and perform paste operation as well:
private void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e) { GridBrowseEditor browseEditor = e.ActiveEditor as GridBrowseEditor; if (browseEditor!=null) { GridBrowseEditorElement element = browseEditor.EditorElement as GridBrowseEditorElement; element.ReadOnly = false; } }
Scroll to the bottom by passing the rows count to ScrollToRow as an integer parameter:
private void radButton1_Click(object sender, EventArgs e) { radGridView1.TableElement.ScrollToRow(radGridView1.Rows.Count-1); }
http://docs.telerik.com/devtools/winforms/datafilter/overview
Building complex filter expressions is a breeze with RadDataFilter. The control allows specifying expressions based on the fields.properties available in the data source. The intuitive UI of the control is designed to facilitate the end-user while empowering the developer to create related expressions with a few clicks.
http://docs.telerik.com/devtools/winforms/cardview/overview
http://www.telerik.com/forums/winforms/listview
RadCardView is a powerful control providing means for displaying and editing text data organized in a card layout. It incorporates a RadLayoutControl allowing modifications of the layout in the Visual Studio designer as well as at run-time.
http://docs.telerik.com/devtools/winforms/dataentry/dataentry
RadDataEntry provides an easy way to display and edit arbitrary business objects in a form layout. The built-in editors are generated by default, so that a fully operational CRUD support may be achieved with a single line of code - just binding to the business object or to a collection of objects. In order to further enhance RadDataEntry, it can be used in combination with RadBindingNavigator or any other collection navigation control.
(DataEntry).PanelElement.Border.Visibility = ElementVisibility.Collapsed;
https://docs.telerik.com/devtools/winforms/controls/datalayout/overview
The RadDataLayout control provides means for displaying data in a highly customizable layout by automatically creating the items and editors and further allowing easy creating of complex layouts at design-time as well as at run-time.
http://docs.telerik.com/devtools/winforms/virtualgrid/overview
RadVirtualGrid is a grid component developed on top of Telerik Presentation Framework which provides a convenient way to implement your own data management operations and optimizes the performance when interacting with large amounts of data.
Key features
http://docs.telerik.com/devtools/winforms/rangeselector/overview
RadRangeSelector provides an elegant solution for end-users to select range (in percentages) and these percentages could be mapped to any kind of visually represented data. Developers can easily set the associated object that will be used as background of RadRangeSelector. The associated object should confront with specific interfaces thanks to which it will be able to communicate with RadRangeSelector. Currently, RadRangeSelector works out of the box together with RadChartView.
http://www.telerik.com/help/winforms/pivotgrid-overview.html
http://www.telerik.com/community/forums/winforms/pivotgrid.aspx
VIDEO: http://www.telerik.com/videos/devcraft/getting-started-with-radpivotgrid-for-winforms
VIDEO: Visualizing KPIs (Key Performance Indicator) With RadPivotGrid for WinForms
VIDEO: What is new in R3 2012 Telerik UI for for WinForms ()
RadPivotGrid for WinForms is a control which provides functionality similar to the functionality of PivotTables in MS Excel. It takes large chunks of data and summarizes it in a human readable way by the help of aggregates and field descriptors. The end-user can easily get an aggregated view of the data that would best suit their needs by dragging and dropping the items of the field descriptors and the aggregates. RadPivotGrid can also sort the data and show subtotals and grand totals at the end or at the beginning of the summarized data. It supports the UI virtualization available in RadGridView, so it can easily handle large data sets bringing to you top performance and low memory footprint even in such scenarios.
Here is a list of the supported features:
https://docs.telerik.com/devtools/winforms/controls/pivotgrid/overview.html - Overview & Example Apps http://www.telerik.com/help/winforms/pivotgrid-radpivotfieldlist.html
http://www.telerik.com/community/forums/winforms/pivotgrid.aspx
Similar to the functionality of PivotTables in MS Excel.
http://www.telerik.com/help/winforms/dropdown-and-listcontrol-dropdownlist-overview.html
http://www.telerik.com/community/forums/winforms/dropdownlist-and-listcontrol.aspx
Video: http://www.telerik.com/videos/winforms/getting-started-with-raddropdownlist
This is like a basic combobox
NOTE: If you need a dropdown with checkboxes use the CheckedDropDownList
Quick Tasks Button
http://www.telerik.com/help/winforms/dropdown-and-listcontrol-listcontrol-overview.html
http://www.telerik.com/community/forums/winforms/dropdownlist-and-listcontrol.aspx
RadListControl is the an alternative to the Microsoft ListBox control. This is a basic list of selectable items.
This is the simple list you are probably looking for. The RadListView offers more advanced features
NOTE: If you need a listbox with checkboxes use the RadCheckedListBox
(including columns).
NOTE: This control is shown under ‘Dropdown & List’ in the Telerik ‘Demo Application – UI for Winforms’ and the online help.
Supports drag and drop for reordering, or dragging between 2 different RadListControls. See the Telerik sample application.
http://www.telerik.com/help/winforms/listview-overview.html
http://www.telerik.com/community/forums/winforms/listview.aspx
http://www.telerik.com/help/winforms/listview-working-with-design-time-adding-groups.html
http://www.telerik.com/help/winforms/listview-custom-items.html
Flat list of labeled items (can be heirachical, like show car makes with model as children).
NOTE: If you are looking for a basic list of selectable items see the RadListControl.
Supports multiple columns.
http://docs.telerik.com/devtools/winforms/checkedlistbox/checkedlistbox
RadCheckedListBox is an enhanced alternative to the standard Windows Forms checked list box control. RadCheckedListBox uses RadListView as a foundation. All previous functionality is preserved (visual formatting and data binding) and is now extended.
http://www.telerik.com/help/winforms/multicolumncombobox-overview.html
http://www.telerik.com/forums/winforms/multicolumncombo
The multi-column combobox is a special case of combobox (RadDropDownList) control with RadGridView integrated in its drop-down. The control combines the functionality and features of RadComboBox and RadGridView showing multiple columns in the dropdownlist.
http://www.telerik.com/help/winforms/multicolumncombobox-filtering.html
Per my 04/28/2015 question about flitering on alternate columns, TS responded: “If you need to display a list of suggestions, it is appropriate to use the filtering functionality. Thus, you can specify another property for the filtering action.”
http://www.telerik.com/help/winforms/treeview-overview.html
http://www.telerik.com/community/forums/winforms/treeview.aspx
http://www.telerik.com/support/code-library/winforms/treeview
Telerik RadTreeView is the supercharged tree view component for Windows Forms. It facilitates display, management, and navigation of hierarchical data structures. The product offers many advanced features like drag-and-drop, load on demand, context menus and data binding.
Select Multiple Items
Tri-State Capable Checkboxes
Mixed Checkboxes& Radio Buttons
Use the Property Builder to configure the TreeView. It is very easy to set properties, plus you can create elements (nodes) there as well.
RadTreeView Properties
RadTreeView Node Properties
Context Menu
http://docs.telerik.com/devtools/winforms/treeview/context-menus/default-context-menu
Modifying the Default Context Menu
RadTreeView displays a default context menu which appears when you right-click on a node. This menu contains 7 items and they are:
The default context menu is disabled by default. Enable it in the IDE or via code:
radTreeView1.AllowDefaultContextMenu = true; // Enable the default context menu
These 3 menu items are diabled by default. Enable them individually in the IDE or via code:
radTreeView1.AllowAdd = true; // Enable the ‘New’ context menu item radTreeView1.AllowEdit = true; // Enable the ‘Edit’ context menu item radTreeView1.AllowRemove = true; // Enable the ‘Delete’ context menu item
http://docs.telerik.com/devtools/winforms/bindingnavigator/bindingnavigator
http://www.telerik.com/forums/winforms/bindingnavigator
RadBindingNavigator’s main purpose is to provide a basic UI for navigation through a collection of business objects. RadBindingNavigator can be paired with a BindingSource component.
http://docs.telerik.com/devtools/winforms/map/overview
http://www.telerik.com/forums/winforms/map
RadMap can visualize tile data from the Bing Maps and the OpenStreetMaps REST services as well as from the local file system.
http://docs.telerik.com/devtools/winforms/carousel/carousel
http://www.telerik.com/forums/winforms/carousel
VIDEO: http://tv.telerik.com/watch/winforms/radcarousel/overview-radcarousel-winforms
RadCarousel is a navigation control that animates a series of elements either by the user clicking a particular element or by clicking the forward and back arrows. Based on top of the Telerik Presentation Framework (TPF), RadCarousel supports data binding, smooth animations and transitions, automatic generation of image reflections and dynamic addition and removal of items.
http://docs.telerik.com/devtools/winforms/gauges/bulletgraph/bulletgraph
The RadBulletGraph control is a variation of linear gauge. It combines a number of indicators into one control making it light-weight, customizable, and straightforward to setup and use. The control is a great tool for dashboards as it is the optimal way to present a lot of information in relatively small size.
http://docs.telerik.com/devtools/winforms/gauges/lineargauge/lineargauge
RadLinearGauge displays simple value within a specific range. The range is displayed in a rectangle, this rectangle can contain scale with or without ticks, labels and a scale bar. This control can be very useful when you need to build business dashboards or you just need graphical indicators.
http://docs.telerik.com/devtools/winforms/gauges/radialgauge/radialgauge
The RadRadialGauge control is designed to display a simple value within a definite range. This range is represented in a circular format similar to car speed gauge. The circular container contains a scale in it which controls the overall layout of ticks, tick labels, needles and ranges and renders an optional scale bar.
Telerik & Dev Notes
http://docs.telerik.com/devtools/winforms/editors/autocompletebox/autocompletebox
http://www.telerik.com/community/forums/winforms/editors.aspx
Video: http://www.telerik.com/videos/winforms/getting-started-with-radautocompletebox-for-winforms
RadAutoCompleteBox allows the end-user to easily fill-in text thanks to auto-complete functionality and tokens of text. This behavior is similar to the “To” field of Outlook and Facebook where you are filling-in the recipients to which you are going to send a message.
https://docs.telerik.com/devtools/winforms/controls/editors/browseeditor/overview
http://www.telerik.com/community/forums/winforms/editors.aspx
Browse to specify a file or folder on disk.
### Take a look at this control set instead. File Dialogs, It looks like this maybe replaces the RadBrowseEditor? ###
It opens a FileOpen, File Save or Folder Selection dialog apparently without calling the Windows API.
RadBrowseEditor is a themable control which allows users to select a file or a directory from the file system or directly type the full path to it in the editor.
### Add the RadOpenFolderDialog to this list. I like it much better than the old FolderBrowseDialog. Also see it here, under the RadBrowseEditor. I’m not sure which of those 2 controls are the one to use now.
http://docs.telerik.com/devtools/winforms/editors/calculatordropdown/calculatordropdown
RadCalculatorDropDown has a simple easy-to-use interface enabling the end user to perform all basic calculations such as addition, subtraction, multiplication, division as well as some more complicated ones – reciprocal, square root, negate.
http://www.telerik.com/help/winforms/editors-color-box-overview.html
http://www.telerik.com/community/forums/winforms/editors.aspx
The main purpose of the control is to allow the user to select a color from a color dialog with preset colors or to type the color directly into the text field. The control then displays the color name if it is a named color or the RGB values of the selected color. A small rectangle filled with the selected color is displayed as well.
http://www.telerik.com/help/winforms/editors-datetimepicker-overview.html
http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker.aspx
VIDEO: Getting Started Video
RadDateTimePicker allows interactive selection of dates using a drop down calendar.
Choose a date (optionally a time of day?)
this.rdtpStartDate.Value = DateTime.Today; // Set Start date to today this.radDateTimePicker1.Value = DateTime.Today.AddDays(1); // Set the date to tomorrow this.radDateTimePicker1.Value = DateTime.Today.AddDays(-1); // Set the date to yesterday
rrdtpNameOfControl.DateTimePickerElement.Calendar.FastNavigationStep = 12; // override fast navigation to 12 months so double arrow click jumps 1 year
this.radDateTimePicker1.MinDate = DateTime.Today.AddDays(-DateTime.Today.Day); // set the MinDate to be the first day of the current month.
this.radDateTimePicker1.NullText = "No date selected";
this.radDateTimePicker1.NullableValue = null;
http://www.telerik.com/help/winforms/editors-maskededitbox-overview.html
http://www.telerik.com/community/forums/winforms/editors.aspx
RadMaskedEditBox is a themeable text box that formats and constrains text to a predefined pattern or a pattern you define. RadMaskedEditBox also handles globalization for date and time edits. Date and Time masks allow the user to navigate using the up and down arrow keys.
The MaskType property defines what type of mask would be used in the masked box:
http://www.telerik.com/help/winforms/propertygrid-overview.html
http://www.telerik.com/community/forums/winforms/property-grid.aspx
Video: http://www.telerik.com/videos/winforms/getting-started-with-telerik-radpropertygrid
Search/Filter PropertyGrid rows: http://docs.telerik.com/devtools/winforms/propertygrid/features/filtering.html
Use the Tasks button to access these properties:
Attach a RadPropertyGrid to an object and get a Visual Stuidio style property editor for the object.
radPropertyGrid1.SelectedObject = new PropertyGridElement(); // point to itself showing the PropertyGrid’s own properties
using Telerik.WinControls.UI; // required for ‘PropertyGridElement’
rpgControlProperties.SelectedObject = commandBarButton1; // Show the properties of a RadCommandBar button
The elements of the SelectedObject
Here’s some articles on using the RadPropertyGrid:
radPropertyGrid.PropertyGridElement.PropertyTableElement.Update(PropertyGridTableElement.UpdateActions.Reset);
Use the RadPropertyGrid.ToolTipTextNeeded event to specify the ToolTipText for the value column and set the ToolTip.AutoPopDelay.
private void radPropertyGrid1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e) { PropertyGridItemElement itemElement = sender as PropertyGridItemElement; if (itemElement!=null) { e.ToolTipText = itemElement.ValueElement.Text; e.ToolTip.AutoPopDelay = 1000; } }
http://www.telerik.com/help/winforms/richtextbox-overview.html
http://www.telerik.com/community/forums/winforms/richtextbox.aspx
Video: http://www.telerik.com/videos/winforms/getting-started-with-telerik-radrichtextbox
Use the RadRichTextEditor instead.
http://docs.telerik.com/devtools/winforms/richtexteditor/overview
RadRichTextEditor is a control that is able to display and edit rich-text content including formatted text arranged in pages, paragraphs, spans (runs), tables, etc.
RadRichTextEditor allows you to edit text and apply rich formatting options, like:
http://www.telerik.com/help/winforms/spellchecker-overview.html
RadSpellChecker enables developers to add multilingual spell checking capabilities to their Win Forms applications. The component is completely customizable and can be attached to any text-editing RadControl.
http://www.telerik.com/help/winforms/editors-spineditor-overview.html
http://www.telerik.com/community/forums/winforms/editors.aspx
RadSpinEditor is a themable alternative to the standard Windows Numeric Up Down control.
http://www.telerik.com/help/winforms/editors-textbox-overview.html
http://www.telerik.com/community/forums/winforms/editors.aspx
**RadTextBoxControl vs RadTextBox** - RadTextBox is a wrapper around the standard .NET TextBox control, while RadTextBoxControl is built entirely on top of Telerik Presentation Framework.
Textbox that observes Telerik Theme settings
http://www.telerik.com/help/winforms/editors-textboxcontrol-overview.html
http://www.telerik.com/community/forums/winforms/editors.aspx
**RadTextBoxControl vs RadTextBox** - RadTextBox is a wrapper around the standard .NET TextBox control, while RadTextBoxControl is built entirely on top of Telerik Presentation Framework.
RadTextBoxControl provides similar to the standard .NET Framework text box features. In addition it allows easy customizations and enhancements. It is generally used for editing text, although it can be used to display text, when in read-only mode. The control can display multiple lines, wrap text to the size of the control and perform text block formatting and replacement.
The control can display multiple lines, wrap text to the size of the control, add basic formatting, use themes, and the main differences with RadTextBox - can be transparent and use gradients.
http://www.telerik.com/help/winforms/editors-timepicker-overview.html
http://tv.telerik.com/watch/winforms/getting-started-with-radtimepicker-for-winforms
http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker.aspx
Video: http://www.telerik.com/videos/winforms/getting-started-with-radtimepicker-for-winforms
RadTimePicker control allows the end user to enter a time value to the editable area of the control, or pick the time from the drop down by selecting both the hours and the minutes. The drop down by default contains RadClock on the left side and two tables on the right side – for picking hours and minutes respectively.
Choose a time of day (not Date)
this.rtpStartTimeStd.Value = DateTime.Now; // Set Start time to now
timepicker1.Culture = new CultureInfo(“en-gb”); // set to Military time
timepicker1.Culture = new CultureInfo(“en-us”); // set to Standard (AM/PM) time
http://www.telerik.com/help/winforms/track-and-status-controls-trackbar-overview.html
http://www.telerik.com/community/forums/winforms/track-and-status.aspx
RadTrackBar, sometimes called a slider control, can be used for navigating a large amount of information or for visually adjusting a numeric setting.
There’s a bug that causes the bar to truncate if it’s physically shorter than a % of the total.
rtbPlaybackSpeed.TrackBarElement.MinSize = new System.Drawing.Size(0, 0); // Resolve by setting the MinSize of the TrackBarElement
http://docs.telerik.com/devtools/winforms/editors/popupeditor/popupeditor
Drop down a form where you can display/edit various controls/values configurable at design time.
RadPopupEditor allows you to show any predefined or custom controls in its popup. By default the control should be associated with a RadPopupContainer. RadPoupContainer on the other hand allows you to build your layout at design time. The controls added to the container will be shown in the popup window when the popup is opened.
From the Demo app:
http://www.telerik.com/help/winforms/buttons-button-overview.html
http://www.telerik.com/community/forums/winforms/buttons.aspx
// Toggle the ‘Image’ on button click. // First add the 2 images as Project Resources (under Project Properties) // Next create a property flag in the class to show the state namespace LS.Common.Log.Presentation { public partial class ucLogViewer : UserControl { public bool LogPaused { get; set; } %%//%% Play/Pause button state flag property public ucLogViewer() { InitializeComponent(); // Code continues…
</hidden>
Show only an icon w/o button frame, like this 3rd button:
radButton3.ButtonElement.ShowBorder = false; radButton3.BackColor = System.Drawing.Color.Transparent; radButton3.DisplayStyle = Telerik.WinControls.DisplayStyle.Image;
Toggle between 2 image (icon) values
http://www.telerik.com/help/winforms/buttons-checkbox-overview.html
http://www.telerik.com/community/forums/winforms/buttons.aspx
http://docs.telerik.com/devtools/winforms/buttons/checkbox/handling-radcheckbox-states
http://docs.telerik.com/devtools/winforms/buttons/checkbox/databinding-radcheckbox
RadCheckBox is designed to provide an interface element that can represent an On or Off state using a check mark.
RadCheckBox supports three states. This is controlled by the IsThreeState property. If it is set to false, the ToggleState property, which determines the current state of the check mark, can be On or Off . Otherwise, it can be set to On , Off , or Indeterminate .
CheckBox that observes Telerik Theme settings
http://www.telerik.com/help/winforms/buttons-dropdownbutton-overview.html
Each of the items of RadDropDownButton can be set to perform an action when it is clicked. In addition, the items can contain other items, allowing you to create any hierarchy that fits your needs of sub-items.
http://www.telerik.com/help/winforms/buttons-splitbutton-overview.html
http://www.telerik.com/community/forums/winforms/buttons.aspx
http://docs.telerik.com/devtools/winforms/buttons/splitbutton/working-with-radsplitbutton-items
RadSplitButton provides a menu-like interface contained within a button that can be placed anywhere on a form.
RadSplitButton looks the same, and works nearly the same, as RadDropDownButton, but RadSplitButton has a DefaultItem property to specify the item whose Click event should be triggered when the button is clicked. The functionality of RadSplitButton is “split” between the button itself and the dropdown menu.
http://www.telerik.com/help/winforms/buttons-radiobutton-overview.html
http://www.telerik.com/community/forums/winforms/buttons.aspx
Put multiple in a RadGroupBox
Properties
‘IsChecked’ = True, button is filled in
http://www.telerik.com/help/winforms/buttons-repeatbutton-overview.html
http://www.telerik.com/community/forums/winforms/buttons.aspx
http://docs.telerik.com/devtools/winforms/buttons/repeatbutton/working-with-radrepeatbutton
RadRepeatButton provides press-and-hold functionality. While the mouse button is pressed down, the ButtonClick event fires at a pre-determined interval. RadRepeatButton is an ideal UI element for allowing users to control an increasing or decreasing value, such as volume or brightness.
http://www.telerik.com/help/winforms/buttons-togglebutton-overview.html
http://docs.telerik.com/devtools/winforms/buttons/togglebutton/handling-radtogglebutton-states
http://www.telerik.com/community/forums/winforms/buttons.aspx
RadToggleButton is designed to manage states on your form. It shares many features with the RadCheckBox, but provides a different visual effect than the standard check mark.
To wrap the text label, 'AutoSize' = False, 'TextWrap' = True, adjust 'Size' as required.
http://docs.telerik.com/devtools/winforms/buttons/toggleswitch/toggleswitch
RadToggleSwitch is a control designed to represent two states: e.g. true/false, On/Off, etc.
http://www.telerik.com/community/forums/winforms/menus.aspx
RadApplicationMenu is the Telerik counterpart of the application menu that displays controls used to perform actions on entire documents and forms, such as Save and Print. It also provides a list of recent documents, access to form options, and the ability to exit the form or application.
See RadRibbonBar for more property info.
http://www.telerik.com/community/forums/winforms/menus.aspx
To implement context menus use RadContextMenu in your application. RadContextMenu is a non-visual component that sits in the component tray located below the form design surface. RadContextMenu, like RadMenu, can be themed and has an items collection that accepts RadMenuItem, RadMenuComboBoxItem, RadMenuSeparatorItem and RadMenuContextItem.
Create a right click (context) menu.
Add to a form then link to a control via the control’s ‘RadContextMenu’ property.
Create a Systray app menu by binding this to a Windows NotifyIcon (niMain).
RadContextMenuItem – rcmi
These are the items that appear in the right click menu.
Use an item as an information display only. You don’t want the highlight on mousehover or the click event to fire, but you don’t want the greyed out text of a disabled control.
rmiLastSync.Enabled = false; // disable highlight on mousehover and click event rmiLastSync.UseDefaultDisabledPaint = false; // control is disabled but don't show as grey text
You can assign RadContextMenu to Telerik and non-Telerik controls. This can be achieved by making use of RadContextMenuManager component. This component will add a RadContextMenu property to all controls on the form. Then, you should simply set a RadContextMenu instance to the RadContextMenu property.
http://www.telerik.com/help/winforms/commandbar-overview.html
http://docs.telerik.com/devtools/winforms/commandbar/design-time
http://www.telerik.com/community/forums/winforms/commandbar.aspx
Video: Working with RadCommandBar
Save and Load Layout to XML file
RadCommandBar is a fully themeable tool strip that provides unprecedented flexibility. More than just a collection of buttons, RadCommandBar hosts any RadControl, including combo boxes, text boxes, split buttons, drop-down buttons, toggle buttons and more. CommandBar can be moved, rearranged and resized at run time for easy end-user customization.
Basically a Toolbar. Can add buttons, dropdowns, etc.
The structure works like this:
Select a CommandBarRowElement then click the Task button to ‘Edit Strips’. You can reorder the Strips within a row from this dialog. Choose a Strip to edit, then use the ‘Items’ property to add/edit items. Or can select a Strip directly from the Row and click the Tasks buton to edit only the Items for that Strip. Set the Strip ‘DisplayName’ so it’s visible from the Overflow button dialog at runtime. Set ‘StretchHorizontally’ to make a Strip fill the available width on the Row.
RadCommandBar allows the user to show/hide, reorder items and rearrange strip elements on different rows at runtime. ### We need to build a common lib class that saves/restores those customizations. The Save/Load layout functionality gives your applications the opportunity to preserve user settings concerning position, visibility and orientation.
http://www.telerik.com/help/winforms/commandbar-save-and-load-layout.html
Roll up empty space left behind from visible/collapsed ToolStrips
https://www.telerik.com/forums/problem-in-stripelement-visible-collapsed
https://www.telerik.com/forums/order-of-strips-to-display
Add Resources to a Solution (Icons, Graphics, Files, etc.)
Here’s my updated video on how to add Icon Graphics to a Solution
The default icons are all small (16×16) but if you use a bigger icon (32×32 or 64×64) the RadCommandBar will expand as required. You can also force it in code. For example show 32×32 image in CommandBarButton like this:
1. Use image with size 32×32.
2. Set the MinSize if you want to have space between image and borders of the button.
this.commandBarButton3.Image = global::CommandBarButtonDefaultSize.Properties.Resources.Button_Next_icon32x32;\\ this.commandBarButton3.MinSize = new System.Drawing.Size(40, 40);
You can add the items by clicking the down arrow on the RCB, but it’s easier to add and organize if you open the RCB ‘Collection Editor’. You can select multiple items to set common properties.
Set the width to match the container
???
Show an icon and text on a control (button, combo, etc) including set button size for text wrap
NOTE: You can <Ctrl> click all the buttons to set these properties at once.
radCommandBar1.Rows[0].Strips[0].Orientation = Orientation.Vertical;
// 'Show entire event' Entire vs. Entry Only drop down button private void rcbddbtniEntireEvent_Click(object sender, EventArgs e) { rcbddbtnShowEntryVEvent.Text = rcbddbtniEntireEvent.Text; } private void rcbddbtniEntryOnly_Click(object sender, EventArgs e) { rcbddbtnShowEntryVEvent.Text = rcbddbtniEntryOnly.Text; }
Note: You must use a CommandBarLabel with a CommandBarHostItem. The built in ‘Text’ value won’t display.
Checkbox as CommandBarHostItem https://www.telerik.com/forums/checkbox-in-radcommandbar
Create a RadCommandBar HostedItem in the IDE, then create a RadCheckBox in code and link it to the HostedItem.
// Create a RadCheckBox ‘rchkOnlyFavoriteColumns’ and link it to the CommandBar HostedItem ‘rcbhiOnlyFavoriteColumns’ RadCheckBoxElement rchkOnlyFavoriteColumns = new RadCheckBoxElement(); rchkOnlyFavoriteColumns.MinSize = new System.Drawing.Size(19, 0); // Set the size here to match the HostedItem from the IDE rcbhiOnlyFavoriteColumns.HostedItem = rchkOnlyFavoriteColumns;
RadCommandBarOverflowButton - The overflow button automatically displays items that don't have the real estate to display by default. The end user can also customize the toolstrip by adding and removing buttons.
radCommandBarStripElement1.OverflowButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; // Or should you use the ‘Hidden’ property?
// Hide the Documents button on the CommandBar rcbbtnDocuments.VisibleInStrip = false; // removes it from toolbar rcbbtnDocuments.VisibleInOverflowMenu = false; // removes it from overflow too (user can't see at all) // We don’t know how to remove it from the Customize dialog
If you Dock a panel (or TableLayoutPanel) control to the form and it appears behind the RadCommandBar, collapse the panel in the Document Outline, then drag it above the RadCommandBar like this:
http://www.telerik.com/help/winforms/menus-menu-overview.html
http://www.telerik.com/community/forums/winforms/menus.aspx
RadMenu enables you to integrate attractive and flexible menus on Forms within your Windows applications.
Other controls, like the top of a RadPanel, can appear behind a RadMenu. I’m not sure how to force them both to the same layer, but you can use the Margin – Top to push the hidden control down. Look for a better solution. The best thing to do is to add the panel after the RadMenu. Also look to my instructions on RadCommandBar to deal with controls behind this one. It’s about setting the order in the IDE Document Outline.
RadMenuButton – rmb
Menu child items are under the RadMenu.Items (Collection). Then select a child and look to its RadMenu.Items (Collection) for the grandchildren items.
If you Dock a panel (or TableLayoutPanel) control to the form and it appears behind the RadMenu, collapse the panel in the Document Outline, then drag it above the RadMenu like this:
private Telerik.WinControls.UI.RadMenuItem rmiHelp; private Telerik.WinControls.UI.RadMenuItem rmiHelpOnline; private Telerik.WinControls.UI.RadMenuItem rmiLegalitySoftwareWebsite; private Telerik.WinControls.UI.RadMenuItem rmiLicenseRegistration; private Telerik.WinControls.UI.RadMenuItem rmiAbout;
Note you might also want to include these items:
private Telerik.WinControls.UI.RadMenuItem rmiFile; private Telerik.WinControls.UI.RadMenuItem rmiNew; private Telerik.WinControls.UI.RadMenuItem rmiOpenSettings; private Telerik.WinControls.UI.RadMenuItem rmiSaveSettings; private Telerik.WinControls.UI.RadMenuItem rmiSaveSettingsAs; // Add a separator then a Recent Items here – See File Renamer example code example private Telerik.WinControls.UI.RadMenuItem rmiExit;
using System.Diagnostics; // required by ‘Process’ to launch external apps (like the browser)
http://www.telerik.com/help/winforms/ribbonbar-overview.html
http://www.telerik.com/community/forums/winforms/ribbonbar.aspx
Video: Overview Video
With the RadRibbonBar control you can build user interfaces similar to those used in Microsoft Office.
Consider adding a RadRibbonForm to the Solution rather than adding a RadRibbonBar to a regular RadForm.
RadRibbonTab – rrbt
RadRibbonBarGroup – rrbg
RadRibbonBarButtonGroup – rrbbg
RadButtonElement - rbe - Position text to BottomCenter, enable TextWrap and config an icon
Hide elements of the Ribbon Bar
Add the following code right under ‘InitializeComponent();’ in frmMain() (or whatever the form is called).
Use the ‘Document Outline’ view (<Ctrl>+W, U) to manage a RadRibbonForm.
Managing & Reordering RibbonBar Groups
NOTE: Reordering CommandTabs in the wizard doesn’t seem to work. You can use this code instead:
//The RibbonGroups 'rrbctArchives' and 'rrbctNotes' should be in the 1st and 2nd positions from the left. Telerik support ticket: 1453535 this.richTextEditorRibbonBar.CommandTabs.Remove(this.rrbctArchives); this.richTextEditorRibbonBar.CommandTabs.Insert(0, this.rrbctArchives); richTextEditorRibbonBar.CommandTabs.Remove(this.rrbctNotes); richTextEditorRibbonBar.CommandTabs.Insert(1, this.rrbctNotes);
Set default selected CommandTab
//Set Default Startup Tab
This control is not available in the RadRibbonBar Items collection, but you can add it in code.
We wanted 2 date controls followed by a dropdown list of predefined date ranges. Add the dropdown list in the designer, then insert the 2 date controls above it (top down) in code.
http://docs.telerik.com/devtools/winforms/panorama/overview
RadPanorama is a control that displays elements of type RadTileElement in a mosaic manner. This control is inspired by the Metro Start Menu screen of Windows 8.
http://docs.telerik.com/devtools/winforms/shortcuts/shortcuts-overview
Almost each application uses the so-called “Shortcuts” – a keyboard combination that triggers a specific action. For a valid shortcut is considered any keyboard combination where a Modifier Key (Ctrl, Alt and Shift or a combination of these) is down and other key(s) is pressed. This semantic is available out-of-the-box in our framework and allows you to seamlessly plug any valid keys combination as an action accelerator. Supported are also the so-called multiple keys shortcuts where the Keys member of each shortcut may be more than one key – e.g. Ctrl + A, S is recognized by the framework. Shortcuts without modifier keys are also supported, but they should be used with caution, since they may be in conflict with other controls which intercept keyboard input.
http://www.telerik.com/help/winforms/carousel-overview.html
http://www.telerik.com/support/code-library/winforms/carousel
Video: http://www.telerik.com/videos/winforms/overview-of-radcarousel-for-winforms
http://www.telerik.com/help/winforms/clock-overview.html
http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker.aspx
VIDEO: http://tv.telerik.com/watch/winforms/getting-started-with-radtimepicker-for-winforms
NOTE: The control cannot be resized since it uses a bitmap for its background.
http://www.telerik.com/help/winforms/desktopalert-overview.html
http://www.telerik.com/community/forums/winforms/desktop-alert.aspx
http://www.telerik.com/help/winforms/desktopalert-getting-started.html
http://tv.telerik.com/watch/winforms/getting-started-with-raddesktopalert - Video- how to get started with RadDesktopAlert.
http://www.telerik.com/help/winforms/allmembers_t_telerik_wincontrols_ui_desktopalertmanager.html
VIDEO: http://www.telerik.com/videos/winforms/getting-started-with-raddesktopalert
RadDesktopAlert component displays a small pop-up window on the screen to notify the user that a specific event has occurred in the application.
My sample project: \\192.168.93.1\KB_MiM\Telerik\LS.TelerikSystrayApp
Popup notification similar to Outlook’s you have a new email Notify (Notification) popup. You can drag it around the screen. There are three buttons in the upper right to close, pin it to the screen and display a list of options.
For multi-monitor systems use the SetActiveScreen() method of the DesktopAlertManager class to set the screen where alerts display at ‘ScreenPosition’.
You can display multiple alert instances on the screen and the DesktopAlertManager will calculate the alerts’ location so that they do not overlap. Alerts are stacked on the screen in the order of their appearance. When an alert is closed, all related visible alerts are automatically relocated to utilize the screen real estate. To show multiple desktop alerts you must create a new instance for every alert. To replace an alert dispose the instance and create another new one.
int i ; // create multiple instances of the for (i = 0; i <= 2; i++) { RadDesktopAlert a = new RadDesktopAlert(); a.CaptionText = i.ToString(); a.Show(); }
RadDesktopAllert does not support auto-size mode. You must set the size of the control so your contents will fit.
Marcel tried this sample code in eTMsync but it didn’t work for him so he ended up writing his own resize code.
http://www.telerik.com/forums/desktop-alert-not-resizing-accordingly-to-the-contenttext-set
It offers some “HTML-like” formatting but does not support “ ”. Here is a list of supported tags and expressions.
Here’s a code example to make a clickable hyperlink in the Alert Content.
You can add a button (or other element) to any control, including an Alert. Here’s how to add a button:
RadButtonElement element = new RadButtonElement(); element.Text = "Button"; element.MaxSize = new Size(20, 20); this.radDesktopAlert1.Popup.AlertElement.ContentElement.Children.Add(element);
Here’s Color Change examples by choosing an alternate themes or using a customized theme from Visual Style Builder.
You can Preview the Alert in the IDE from the control Smart Tag in the Component Bin.
this.radDesktopAlert1.FixedSize = new Size(200, 200);
See: RadVScrollBar
http://www.telerik.com/help/winforms/panels-and-labels-label-overview.html
http://www.telerik.com/community/forums/winforms/panels-and-labels.aspx
Telerik themeable label with HTML-like formatting capability. Also see this video.
NOTE: Our design policy it to only change the control name from default if we will programmatically change the text.
Custom Text Formatting via MarkupEditor
http://www.telerik.com/help/winforms/panels-and-labels-label-html-like-text-formatting.html
Set these RadLabel properties and double click the label to stub out a click event.
Instead of LinkLabel see the <Links> button on the ‘MarkupEditor’ behind the ‘RadLabel.Text’ property dropdown and open locations without additional code.
<a href="http:%%//%%www.legalitysoftware.com/">Legality Software</a>
<a href=“http://www.legalitysoftware.com/”><span style=“color: #d86040”>Legality Software</span></a> - orange font in Wizards (NOTE: Set ‘BackColor’ = 225, 228, 240 to match wizard form)
<a href="http:%%//%%support.lawtopia.net/">View log files</a>
Here’s the HTML for our company blurb for wizard pages, etc. (Set ‘TextAlignment’ = MiddleCenter):
<p><span style="font-size: 10pt; color: #00467f"><em>Legality Software provides packaged software products and custom software solutions for law firms. Our solutions typically enhance the capabilities of, or fix problems with, the tools you use in your firm today. We also help firms automate difficult, time consuming or repetitive tasks. Legality products and solutions are designed to solve your problems so you can achieve your goals. </em></span></p><p><span style="color: #00467f"><span style="font-size: 10pt"><em>If you have a specific problem we may already have a solution. <br /></em></span><span style="font-size: 10pt"><em>If not we can build one for you.</em></span></span></p><p><span style="font-size: 13px"><span style="font-size: 10pt"><br /><span style="color: #00467f">Visit </span></span><a href="http:%%//%%www.legalitysoftware.com/"><span style="font-size: 10pt">Legality Software</span></a><span style="font-size: 10pt; color: #00467f"> to learn more.</span></span></p>
### I DON'T KNOW HOW TO CENTER TEXT IN A MULTI-LINE LABEL
### grab code from TMFU
### grab code from TMFU & ask Larry how he worked out the issue with the Placeholder Text is not there for the 2nd replace
http://www.telerik.com/help/winforms/track-and-status-controls-progressbar-overview.html
http://www.telerik.com/community/forums/winforms/track-and-status.aspx
RadProgressBar is designed to display progress information to the user during a long-running operation.
### Need an example
http://www.telerik.com/help/winforms/track-and-status-controls-waitingbar-overview.html
http://www.telerik.com/community/forums/winforms/track-and-status.aspx
http://docs.telerik.com/devtools/winforms/track-and-status-controls/waitingbar/waitingbar
http://docs.telerik.com/devtools/winforms/track-and-status-controls/waitingbar/properties-and-methods
Like a progress bar but with no start or end. It just shows activity.
Properties
The ‘WaitingBarIndicatorElement’ is the sliding part, which has:
NOTE: A RadWaitingBar may (does) have more than 1 ‘WaitingBarIndicatorElement’, named ‘WaitingBarIndicatorElement1’ and ‘WaitingBarIndicatorElement2’ so if you use ‘ShouldPaint’, besure to change both instances.
Methods
### Add an example here from HLS PdfParser
http://docs.telerik.com/devtools/winforms/track-and-status-controls/rating/rating
RadRating is a flexible UI component that allows users to place their rating by selecting from a finite number of items (stars, diamonds and hearts). The developers can fully customize the control by configuring its orientation, rating precision, direction etc.
http://docs.telerik.com/devtools/winforms/rotator/overview
RadRotator is a multipurpose component for content rotation and personalization. Highly customizable, it delivers high interactivity and user involvement. You can display a series of images, web URLs or any collection of rad elements. Animation between frames can be opaque or transparent and the movement can be in any direction. You can adjust the level of granularity and interval between frames.
http://www.telerik.com/help/winforms/forms-and-dialogs-radtitlebar-overview.html
http://www.telerik.com/community/forums/winforms/forms-and-dialogs.aspx
RadTitleBar control is used in forms and provides functionality for dragging, minimizing, maximizing and closing the form. This control is internally used by RadForm.
To include a title bar with help, maximize, minimize and close button functionality simply drag it from the toolbox on the desired form. This control is great addition to the ShapedForm.
To customize the help, minimize, maximize and close buttons, use the RadTitleBar.TitleBarElement's HelpButton, MinimizeButton, MaximizeButton and CloseButton objects. Each button is a RadButtonElement type that include properties to control text, image, and layout.
Note: By default, the HelpButton is not shown. It is necessary to set its Visibility property to ElementVisibility.Visible in order to be displayed.
http://www.telerik.com/help/winforms/track-and-status-controls-scrollbar-overview.html
http://www.telerik.com/community/forums/winforms/track-and-status.aspx
http://www.telerik.com/help/winforms/track-and-status-controls-scrollbar-getting-started.html
Using Telerik scrollbars is a bit more intricate compared to using the standard scrollbars because you have to handle scroll event manually. Add a RadPanel to your form then add a RadVScrollbar in the panel and dock it to the Right. Add another RadPanel inside the 1st RadPanel and set its height to the total height you want to be available upon scrolling (taller than the 1st RadPanel). This value can be statics e.g. 1000 pixels or dynamic determined by the scrollable content. Now add controls (the controls which are to be scrolled) to the second RadPanel.
Then subscribe to the Scroll event of the vertical scrollbar and assign its negated value to the Top property of the second RadPanel:
void radVScrollBar1_Scroll(object sender, ScrollEventArgs e) { this.radPanel2.Top = -this.radVScrollBar1.Value; }
Finally, set the Maximum property of the scrollbar to reflect the size of the scrollable height which is the total height of the scrollable content minus the visible height. For the example of this section in particular, that is the height of the second panel minus the height of the first panel.
this.radVScrollBar1.Maximum = this.radPanel2.Size.Height - this.radPanel1.Size.Height;
http://www.telerik.com/help/winforms/wizard-overview.html
http://www.telerik.com/community/forums/winforms/wizard.aspx
Design Time Settings http://www.telerik.com/help/winforms/wizard-design-time.html
Wizard dialog with multiple pages and <Back><Next> buttons.
Properties
Quick Tasks Button
Another option is to click page name in 'Pages' Collection Editor to jump/view.
### I’m not sure how to change the “Help” hyperlink in the lower left corner.
Contains the following elements:
Events - help you to follow the state of the control at run time, implement custom pages sequence and page processing validation.
http://www.telerik.com/help/winforms/wizard-events.html
Subscribe to the Next event this.radWizard1.Next += new WizardCancelEventHandler(radWizard1_Next); Handle the Next event
private void radWizard1_Next(object sender, WizardCancelEventArgs e) { if (this.radWizard1.SelectedPage == this.radWizard1.Pages[1]) %%//%% Check if this is the desired page { // Do some validation here e.Cancel = true; %%//%% If the validation does not pass this.radWizard1.SelectedPage = this.radWizard1.Pages[0]; %%//%% Could return to 1<sup>st</sup> page // Or you could show some message to the user } }
Custom Page Branching Sample Project
Custom CommandArea Controls like Navigation Buttons
Create multiple Welcome or Completion pages
RadWizardPage - rwp
Only change from default if we will programmatically change the text)
http://docs.telerik.com/devtools/winforms/calendar/calendar
http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker.aspx
VIDEO: http://tv.telerik.com/watch/winforms/radcalendar/using-radcalendar-for-winforms
RadCalendar supports all common features you would find in the standard Month Calendar control, such as first day of week, show today, special days, and show/hide week numbers, but adds several nifty features you will not find in the Visual Studio toolbox, such as focused date, show/hide week days, fish eye (date zoom functionality), read-only support, and show other month days. We went even further and extended the calendar functionality with footer support, controllable header/footer, fast navigation buttons, and full control over cell formatting (paddings, borders, margins, spacings, alignment, etc), making RadCalendar a feature-complete control with expected behavior, which your users will truly appreciate.
This is a big calendar like you would see in Outlook.
It’s not a dropdown to select a date. For that see RadDateTimePicker.
Code snippet to set the calendar control double arrow navigation to a year jump from the default 3 month jump. Put this code in the form load event.
(radCalendarControlName.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar).Calendar.FastNavigationStep = 12;
http://www.telerik.com/help/winforms/scheduler-introduction.html
http://www.telerik.com/community/forums/winforms/scheduler.aspx
VIDEO: http://www.telerik.com/videos/winforms/introduction-to-radscheduler-for-winforms-webinar
VIDEO: http://tv.telerik.com/watch/winforms/radscheduler/scheduler
RadScheduler is a highly-customizable appointment presentation component that offers rich Outlook®-style functionality. When used with RadReminder and RadDesktopAlert you can add rich scheduling UI to any WinForms application and enjoy a lightweight yet highly customizable component.
http://www.telerik.com/help/winforms/scheduler-scheduler-navigator-overview.html
RadSchedulerNavigator is a stand-alone control used for navigation in RadScheduler control.
http://docs.telerik.com/devtools/winforms/scheduler/design-time/smart-tag
http://docs.telerik.com/devtools/winforms/scheduler/reminders/radreminder http://www.telerik.com/community/forums/winforms/scheduler.aspx
VIDEO: http://tv.telerik.com/watch/winforms/getting-started-with-radschedulerreminder
RadReminder is a component that reminds you of an object that you pass to it. This object should implement IRemindObject and depending on the values that you set in the implementation of the IRemindObject interface, RadReminder throws an event. When the event is fired, you can show an appropriate message to the user using RadDesktopAlert or another alert implementation of your choice.
http://www.telerik.com/help/winforms/scheduler-reminders-radschedulerreminder.html
RadSchedulerReminder represents a special reminder object for the appointments that are collected in RadScheduler. This component inherits from RadReminder.
http://docs.telerik.com/devtools/winforms/ganttview/ganttview-
http://docs.telerik.com/devtools/winforms/ganttview/timeline/timeline-views
RadGanttView is a data-visualization and editing control for project planning data and different types of task and time scheduling. All tasks are represented as vertical bars aligned along a timeline with the beginning and end time of each task determining its location along the timeline. These elements and the dependencies between them comprise the work breakdown structure of a project.
RadGanttView offers a number of built-in timeline views which allow you to show the timeline in different scales. It is reasonable to change the timeline
http://docs.telerik.com/devtools/document-processing/introduction
Telerik Document Processing is a bundle of UI-independent, cross-platform libraries enabling you to process the most commonly used flow, fixed and spreadsheet document formats. The components allow to create documents, import, modify and export them without external dependencies between the following file formats: CSV, DOCX, HTML, PDF, RTF, TXT, XLSX, ZIP
http://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview
RadPdfProcessing is a processing library that allows to create, import and export PDF documents.
Some of the features you can take advantage of are:
http://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/overview
RadSpreadProcessing is a document processing library that enables your applications to easily import and export files to and from the most common spreadsheet file formats.
Some of the features which you can use are:
http://docs.telerik.com/devtools/document-processing/libraries/radspreadstreamprocessing/overview
Spread streaming is a document processing paradigm that allows you to create big spreadsheet documents with great performance and minimal memory footprint. The key for the memory efficiency is that the spread streaming library writes the spreadsheet content directly to a stream without creating and preserving the spreadsheet document model in memory. Each time an exporter object is disposed, the set values are written into the stream. This allows you to create large documents with an excellent performance.
Some of the features you can take advantage of are:
RadSpreadStreamProcessing vs. RadSpreadProcessing
There are two main differences between the libraries.
http://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/overview
RadWordsProcessing is a processing library that allows to create, load, modify and export documents to a variety of formats.
Some of the features are:
http://docs.telerik.com/devtools/document-processing/libraries/radziplibrary/overview
With RadZipLibrary you can compress data like images, docx or pdf files.
This is a list with short descriptions of the top-of-the-line features of Telerik's Zip Library control:
http://www.telerik.com/help/winforms/pdfviewer-overview.html
Video: http://www.telerik.com/videos/winforms/getting-started-with-the-winforms-radpdfviewer
RadPdfViewer is a control that can natively visualize PDF documents straight in your application. It comes with a predefined UI that is intuitive and provides the means for utilizing the features of the control. The control utilizes virtualization and supports load on-demand mode in order to guarantee good performance with larger documents.
Here is a list of the supported features:
Unsupported Features http://www.telerik.com/help/winforms/pdfviewer-unsupported-features.html
http://docs.telerik.com/devtools/winforms/pdfviewer/pdfviewernavigator
Adds toolbar to RadPdfViewer that adds support for the typical commands you want to use on a PDF file.
This control can be used with RadPdfViewer. It provides predefined UI for the most common operations used with PDF files. The following list contains all features:
http://docs.telerik.com/devtools/winforms/diagram/diagram

RadDiagram offers flexible and interactive diagramming layouts for your rich data-visualization applications.
http://www.telerik.com/help/winforms/themes-using-a-default-theme-for-the-entire-application.html Definitely this one
http://www.telerik.com/support/kb/winforms/details/creating-a-theme-component Maybe this one??
http://www.telerik.com/community/forums/winforms/themes-and-visual-style-builder.aspx
Video: Theme for Telerik UI for Winforms
Video: http://www.telerik.com/videos/winforms/changing-themes-at-run-time-with-radcontrols-for-winforms
Use the Telerik ThemeViewer Tool to examine all the controls in the available themes. This is also a good place to see all the controls in action.
### At some point I’d like to have a standard “Tools | Options” dialog in our project templates where that’s appropriate. This would contain a tree on the left and a property grid on the right. I’d like a search field above that tree so you can type word(s) to filter and only see branches of the tree that contain that text. This would enable the user to easily find settings.
See this video: \\ 192.168.93.1\KB_MiM\Telerik\20160110) ucTelerikThemeSelector.mp4
### I need to recreate this video (shorter) with the direct procedure
// Set the theme to the current ucTelerikThemeSelector default ThemeName = ucTelerikThemeSelector1.ThemeName; // Set the theme for this (existing) form ThemeResolutionService.ApplicationThemeName = usTelerikThemeSelector1.ThemeName; // Set the theme for all other (future created) forms in this application
ThemeResolutionService.ApplicationThemeName = "Office2013Dark"; // Set the Current Theme Applicaton wide // NOTE: You must also load the Office2013Dark theme in the solution and add ‘’ ThemeName = ucTelerikThemeSelector1.ThemeName; %%//%% Set the theme for this (existing) form. This is good for rfrmMain where it is already created before the ApplicationThemeName was set.
Or load the Office2013Dark theme as the default/only theme for a simple application (with no ThemeSelector)
Add this code fragment after InitializeComponent();
ThemeResolutionService.ApplicationThemeName = "Office2013Dark"; // Set the Current Theme Applicaton wide ThemeName = "Office2013Dark"; // Set the theme for this (existing) form. // NOTE: You must also add the Office2013Dark theme control by dragging it from the Toolbox to the form
Note: You still must to drop the theme component on the form (e.g. Office2007Black in the code samples above) or create an instance of the desired theme programmatically.
ThemeResolutionService.ApplicationThemeName = "Office2010Blue"; // Application wide theme radGridView1.ElementTree.EnableApplicationThemeName = false; // set GridView to use separate theme radGridView1.ThemeName = "Office2010Silver"; // set GridView alternate theme
### NOTES:
### We need to upgrade our Telerik to the latest version and see what new themes we want to add to our supported list. Also which do we currently want to use as our default?
http://docs.telerik.com/devtools/winforms/telerik-cab-enabling-kit/telerik-cab-enabling-kit
VIDEO: http://tv.telerik.com/watch/winforms/cab/intro-telerik-cab-enabling-kit
NOTE: There are multiple other videos on the main page.
The Telerik CAB Enabling Kit for WinForms is part of the Telerik UI for for WinForms suite since the R1 2008 release. It provides seamless integration of Telerik UI for for WinForms with the Composite UI Application Block (CAB). It is well suited for enterprise applications, and helps developers with using the best practices and patterns.
The Telerik CAB Enabling Kit (TCEK) for WinForms can be used to develop smart-client line-of-business applications such as OLTP (online transaction processing) front ends for data entry applications; rich client portals to back-end services like government or bank teller applications; UI-intensive stand-alone applications such as those used by call center staff, IT support desks or stock traders.
Composite UI Application Block Framework
The Composite UI Application Block (CAB) framework is intended for large WinForms-based applications. The three major goals of CAB design are:
http://docs.telerik.com/devtools/winforms/codedui/codedui
VIDEO: http://tv.telerik.com/watch/radcontrols-for-winforms/getting-started-with-coded-ui-for-winforms
VIDEO: http://www.telerik.com/videos/winforms/what-is-new-in-q3-2012-radcontrols-for-winforms
The CodedUI Extension for Telerik UI for for WinForms controls is an extension for Microsoft Visual Studio, which runs in the Visual Studio Coded UI Test process and captures information about the RadControls that it encounters during a test recording and then generates code to replay that test session.
CodedUI tests can test your application through the user interface (UI). Coded UI Tests are particularly useful where there is validation of the control properties or other logic in the user interface. If the control property value is invalid, the test fails.
Creating a coded UI test is easy. You simply perform the test manually while the CUIT Test Builder runs in the background. You can also specify what values should appear in specific control properties. The CUIT Test Builder records your actions and generates code from them. You can add an assertion during the recording. After the test is created, you can edit it in a Visual Studio editor and modify the sequence of the actions.
Options to hide control Borders (using RadPanel as an example, but this works on RadTextbox, etc):
this.rpnlPanel.PanelElement.PanelBorder.ShouldPaint = false;
// Hide some/selected RadPanel borders this.rpnlPanel.PanelElement.PanelBorder.BoxStyle = BorderBoxStyle.FourBorders; // enable border segments this.rpnlPanel.PanelElement.PanelBorder.TopWidth = 0; // hide the top border this.rpnlPanel.PanelElement.PanelBorder.BottomWidth = 0; this.rpnlPanel.PanelElement.PanelBorder.LeftWidth = 0; this.rpnlPanel.PanelElement.PanelBorder.RightWidth = 0;
From: http://www.telerik.com/forums/can-radpanel-only-have-bottom-border-or-top-etc
http://docs.telerik.com/devtools/winforms/telerik-presentation-framework/html-like-text-formatting
VIDEO: Enhanced HTML-like Markup Support
Telerik UI for for WinForms provide an advanced text styling mechanism which can be applied to all Telerik WinForms controls and their elements, because it enhances one of the smallest element in Telerik Presentation Framework - the text primitive. The new rich text formatting mechanism uses plain HTML tags to display formatted text such as font style, font color, font size, etc. Your text must start with the <html> tag so that HTML-like formatting is activated. The list of supported markup tags is given below:
Supported Tags
To prevent formatting issues, the <> has been removed from color in the table.
| Tag | End Tag | Description |
|---|---|---|
| <font> | N/A | Font Family. Please use the span tag since the font tag is not supported by RadMarkupEditor. |
| color | N/A | Text color. Please use the span tag since the color tag is not supported by RadMarkupEditor. |
| <size> | N/A | Font size. Please use the span tag since the size tag is not supported by RadMarkupEditor. |
| <b>, <strong> | </b>, </strong> | Bold |
| <i>, <em> | </i>, </em> | Italic |
| <u> | </u> | Underlined text |
| <br> | N/A | Line break |
| <p> | </p> | Paragraph |
| <span> | </span> | Span. There is limited support of the style attribute and the CSS properties: font-family, font-size, color, and background-color. Refer to the example below. The Span tag is preferable to font, color, and size tags. |
| <ol> | </ol> | Ordered list |
| <ul> | </ul> | Unordered list |
| <li> | </li> | List item. Defines a list item in an ordered or unordered list. |
| <strike> | </strike> | Striked text. |
| <a> | </a> | Link |
| <img> | N/A |
http://www.telerik.com/help/winforms/tools-controlspy-overview.html
http://www.telerik.com/community/forums/winforms/tools.aspx
Video: http://www.telerik.com/videos/winforms/telerik-radcontrols-for-winforms---using-the-radcontrols-spy
The Control Spy is a tool to let you examine the detailed internal structure of any RadControl. It is not a stand-alone tool. Rather, the Control Spy is supplied as part of a library that you compile into your application. After adding this library, you can start the Control Spy and use it to examine and alter properties of any RadControl which is currently running.
Video: http://www.telerik.com/videos/winforms/styling-basics-with-visual-style-builder-for-winforms
Video: http://www.telerik.com/videos/winforms/introduction-to-the-new-visual-style-builder-for-winforms
http://www.telerik.com/help/winforms/tools-themeviewer.html
ThemeViewer is a tool that gives you the ability to preview a custom or a predifined theme for all themable controls of the suite.
RadThemeManger
http://docs.telerik.com/devtools/winforms/tools/theme-manager/theme-manager#radthememanager
RadThememanger is a component which can be dragged from the toolbox. It purpose is to manage the XML files that contain the theme for the controls.
http://www.telerik.com/help/winforms/tools-shapeeditor-overview.html
http://www.telerik.com/community/forums/winforms/tools.aspx
Each RadElement / RadItem can be shaped by setting the Shape property. The shape can be easily modified either in design mode or in Visual Style Builder by using the Shape Designer. The Shape Designer provides an easy way for creating all kinds of custom shapes only by adding, removing and dragging the points which represent the shape. Each line can also be curved only by right-clicking and making it a curved line.
http://www.telerik.com/help/winforms/tools-element-hierarchy-editor-overview.html
When dealing with complex control types that have multiple nested elements, such as a RadRibbonBar control, you want the ability to set properties at multiple levels of the class hierarchy. For example, in the case of a RadRibbonBar you can set properties of the RadRibbonBarElement or you can set the properties of one of its RadTabStripElement elements or possibly one of its RadDropDownButtonElement elements.
Since all controls inherit from one or more base classes it is also helpful to be able to easily see the classes in the control hierarchy so you can set the properties on the appropriate class. When designing a RadButton control you can set base class properties or any properties of classes that RadButton derives from. The RadButton Visibility property can be set at the base class level (RootRadElement) while the RadButton Text property can be set at the RadButtonElement class level.
<Ctrl><Shift> </> to see the shortcut list
Loads/saves a default settings file on application start/end. There is no option for the user to name the file or specify the path. The settings file is named ‘%applicationname%.dat’ and is stored in the standard location: ‘C:\ProgramData\Legality Software\%Application Name%’.
Includes exception handling, licensing , setting storage.
frmMain includes a RadDock, GridView in a Document pane and Detail PropertyGrid in a Tool Window.
Same as LS.Base0 but rfrmMain does not contain a RadDock or data controls.
Supports load/save of named settings files from/to a specified path.
Includes exception handling, licensing , setting storage.
frmMain includes a RadDock, GridView in a Document pane and Detail PropertyGrid in a Tool Window.
Same as LS.Base1 but rfrmMain does not contain a RadDock or data controls.
To be developed…
Supports multiple queries like dbEntreé. Actually this will be a rewrite of dbEntreé but using controls that break up all the major functionality. Work with Marcel on where these breaks should be made.
Supports load/save of named settings files from/to a specified path.
Includes exception handling, licensing , setting storage.