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
* By default a single arrow click moves one month and a double arrow click moves three months (called Fast Navigation).rrdtpNameOfControl.DateTimePickerElement.Calendar.FastNavigationStep = 12; // override fast navigation to 12 months so double arrow click jumps 1 year
* 'MinDate'/'MaxDate' - first and last dates that can be selected in the picker. Attempts to select outside these bounds are ignored.this.radDateTimePicker1.MinDate = DateTime.Today.AddDays(-DateTime.Today.Day); // set the MinDate to be the first day of the current month.
* 'NullText’ - text displayed when the NullableValue property is set to null and RadDateTimePicker is not in focus. By default, NullText is an empty string.this.radDateTimePicker1.NullText = "No date selected";
* 'Format' - The DateTimePickerFormat enumeration values are Long, Short, Time and Custom. Set Format to Custom to enable the CustomFormat property.
* 'CustomFormat' - format string determines the display of the date in the picker edit. See the Internationalization and Date Formats topic for more information.
* 'Culture determines the language that the drop down calendar and edit will display in. See the Internationalization and Date Formats topic for more information.
* 'CalendarSize' - gets/sets the size of the RadCalendar in the RadDateTimePicker drop-down.
* 'NullableValue' - same as the Value property, but the NullableValue property is of type Nullable DateTime. It can be null – in this case if RadDateTimePicker is not selected it will show its NullText. In case RadDateTimePicker is selected, it will show the last entered date – this allows the end-user to enter and edit the date.this.radDateTimePicker1.NullableValue = null;
==== * RadMaskedEditBox – rmeb ====
[[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.
{{tdn:image91.png?416x262|A screenshot of a computer Description automatically generated}}
The MaskType property defines what type of mask would be used in the masked box:
* **None**
* **[[http://www.telerik.com/help/winforms/editors-maskededitbox-date-and-time-masks.html|DateTime]] -** set the **MaskType** property to **DateTime** and the **Mask** property to "d". //See [[http://www.telerik.com/help/winforms/editors-maskededitbox-date-and-time-masks.html|Date and Time Masks]] for more information on how this mask is constructed.//
* **[[http://www.telerik.com/help/winforms/editors-maskededitbox-numeric-masks.html|Numeric]] -** [[http://www.telerik.com/help/winforms/editors-maskededitbox-numeric-masks.html|The numeric mask]] is used when you need to display these ([[https://msdn.microsoft.com/en-us/library/dwhawy9k.aspx|defined on MS site]]):
* Percent values.
* Decimal values.
* Currency (culture-aware).
* Fixed point values.
* **[[http://www.telerik.com/help/winforms/editors-maskededitbox-standart-masks.html|Standard]] -** set the **MaskType** property to **Standard** and the **Mask** property to "(###) ###-###". //See// [[http://www.telerik.com/help/winforms/editors-maskededitbox-standart-masks.html|Standard Masks]] //for more information on how this mask is constructed.//
* **Regex** - You can define [[http://msdn.microsoft.com/en-us/library/2k3te2cs(v=vs.80).aspx|Regex expressions]] as masks. For example mask **[A-z]** will check for at least one symbol in this range (A-z) in MaskEditBox’s Text.
* **IP** - allow user to input only **3** digits in **0-255** range in **four** groups
* **Email** - validate user input for the valid mail. If this email is not valid will notify user with validation icon:
* ‘TextMaskFormat ‘ - you may want to get a RadMaskedEditBox.Value that differs from what the end-user sees in the editor, or, in other words, from what the Text property provides. In such cases the you will find the TextMaskFormat property useful. It allows you to get variations of of the Text property value taking into account whether you want to get the prompt characters, and the literals used in the mask. The type of the TextMaskFormat property is the MaskFormat enum which provides the following values:
* ‘IncludePromptAndLiterals’ (default value) - The Value property returns Return the text input by the user as well as any literal characters defined in the mask and any instances of the prompt character.
* ‘ExcludePromptAndLiterals’ - The Value property returns only the text input by the user.
* ‘IncludePrompt’ - The Value property returns the text input by the user as well as any instances of the prompt character.
* ‘IncludeLiterals’ - The Value property returns the text input by the user as well as any literal characters defined in the mask.
==== * RadPropertyGrid – rpg ====
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:
* Enable Filtering
* Enable Grouping
* Enable Sorting
* Show Helprich
* Show SearchBox
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
* ‘SelectedObject’ - points to the object whose properties should be displayed
* ‘HelpVisible’ - show/hide the help section at the bottom which displays the Description attribute of the selected property
* ‘HelpBarHeight’ – in pixels of the help section at the bottom
* ‘ToolBarVisible’ shows the toolbar where you would add RadButtonElements for sort by category vs. alphabetical for example
* ‘’Category’ attribute of the SelectedObject property allows you to create groups in the PropertyGrid (for sort by category vs. alphabetical)
* ‘PropertySort’ sets default sorting to one of the enumerated values:
* ‘Alphabetical’ – sorts the properties according to the SortOrder setting (Ascending or Descending)
* ‘Categorized’ – groups the properties according to their Category attribute
* ‘CategorizedAlphabetical’ – groups the properties according to their Category attiribute and sorts them Alphabetically, according to the SortOrder setting (Ascending or Descending)
* ‘None’ – removes sorting and grouping
* ‘SortOrder’ - Ascending, Descending and None
* ‘ItemHeight’ - sets the visible items height.
* ‘ItemSpacing’ - sets the spacing between the items.
* ‘ItemIndent’ - sets the indent space in the beginning of the items.
The elements of the SelectedObject
Here’s some articles on using the RadPropertyGrid:
* [[http://www.telerik.com/help/winforms/propertygrid-editors-using-custom-editor.html|Using Custom Editors]] (Replace a spin editor with a track bar editor)
=== Force a RadPropertyGrid to update ===
radPropertyGrid.PropertyGridElement.PropertyTableElement.Update(PropertyGridTableElement.UpdateActions.Reset);
=== ToolTips on Value Column ===
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;
}
}
==== RadRichTextBox – (deprecated) ====
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---rrte|RadRichTextEditor]] instead.
==== RadRichTextEditor - rrte ====
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.
{{tdn:image92.png?525x404|A screenshot of a computer Description automatically generated}}
RadRichTextEditor allows you to edit text and apply rich formatting options, like:
* Bold, Italic
* Underline, Strike Through, Superscript and Subscript
* Usage of all available system fonts
* Text color and background
* Bullet and numbered lists
* Paragraph alignment and indentation
* Show/Hide formatting symbols
* Clear Formatting
* Inserting pictures/symbols/hyperlinks
* Table support – including nested tables, merging cells, setting different RowSpan and ColumnSpan, tables with auto width and more.
* ContextMenu - a standard one is provided out of the box, but it can be easily customized or substituted for a user-defined one.
* SelectionMiniToolbar - very similar to the one in MS Word, but can also be replaced with another.
* SpellChecker - extensible spell checking for different languages, using built-in or custom dictionaries.
* Printing - RadRichTextEditor supports printing out of the box.
* Multi-level Undo/Redo Support - Telerik RadRichTextEditor provides desktop-like usability and control thanks to its multilevel Undo/Redo feature. It allows past actions to be reviewed and reversed, just like in Microsoft Word.
* Three types of layout – Paged, Flow (as text in an HTML page viewed in a browser) and FlowNoWrap.
* Multi-region selection - the built-in multi-region support enables you to perform various operations for more than one selection simultaneously.
* Rich-text clipboard - allows rich text copy/paste from Word, OpenOffice etc.
* Import/export - with Telerik RadRichTextEditor control you can load XAML, HTML, RTF, DocX (rich-text) or TXT (plain text) into the control, you can format and edit it and then export it back to any of the above formats or PDF.
* Headers and Footers - RadRichTextEditor supports headers and footers in its document.
* Track changes - adding and removing of text, images, hyperlinks, tables, etc. and formatting changes of these elements can be tracked by different users.
* Bookmarks - provide easy retrieval of previously marked parts of the document.
* Comments - offer the ability to add text to the document which is not inserted directly in the page.
* Document protection - allows editing restrictions in the document for a set of users and groups.
* Mail merge - makes populating a template document with data easy.
* Custom annotations - enables you to extend the document model in order to serve specific needs.
* Footnotes and Endnotes - usually used to show the source of a material or add an explanation.
* Bibliographic references - can be used for referencing a source in the form of text or pointing the source of a citation.
* Cross-references - references to a Heading, Caption or Bookmark can now change along with their source.
* Captions for tables and figures - images, tables, etc. can now be easily labeled.
* Document variables - a mechanism used for storing information in the document.
* Code blocks - provide the ability to add source code fragments in a document.
* IME support - RadRichTextEditor supports IME out the box.
=== Properties ===
* .IsReadOnly = True to block editing
* .SelectionEnabled = True to allow text selection
* .IsSelectionMiniToolbarEnabled = False blocks this font toolbar popup on selected text
* https://gyazo.com/5a11a797c43a8fe7f91f432de282efb7
* This ContextMenu is still available: https://gyazo.com/d2f9184194167f7a833f7cbf507fc757
==== RadSpellChecker – rsc ====
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.
{{tdn:image93.png?420x315|A screenshot of a computer Description automatically generated}}
==== * RadSpinEditor – rse ====
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.
{{tdn:image94.png?110x32|A white rectangle with black arrows Description automatically generated}}
==== * RadTextBox – rtxt ====
http://www.telerik.com/help/winforms/editors-textbox-overview.html\\
http://www.telerik.com/community/forums/winforms/editors.aspx
[[http://docs.telerik.com/devtools/winforms/editors/textboxcontrol/radtextboxcontrol-vs-radtextbox|**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
{{tdn:image95.png?278x159|A screenshot of a computer Description automatically generated}}
*
// 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…
// Now create a click event handler to swap the image and update the property flag
private void rcbbtnPlayPauseLog_Click(object sender, EventArgs e) {
if (LogPaused == true) {
rcbbtnPlayPauseLog.Image = LS.Common.Log.Presentation.Properties.Resources.Play_24x24;
LogPaused = false;
}
else {
rcbbtnPlayPauseLog.Image = LS.Common.Log.Presentation.Properties.Resources.Pause_24x24;
LogPaused = true;
}
}
// NOTE: You could have used a bool variable (rather than a property) and called some method(s) from the click event.
Show only an icon w/o button frame, like this 3rd button:\\
{{tdn:image100.png?256x48|A close-up of a computer screen Description automatically generated}}
radButton3.ButtonElement.ShowBorder = false;
radButton3.BackColor = System.Drawing.Color.Transparent;
radButton3.DisplayStyle = Telerik.WinControls.DisplayStyle.Image;
Toggle between 2 image (icon) values
if (rbtnPlayPauseToggle.Text == "play") // use the .Text property as a flag
{
rbtnPlayPauseToggle.Image = Properties.Resources.MediaPause_40; // .MediaPause_40 is ‘MediaPause_40.png’ imported to the app repository
rbtnPlayPauseToggle.Text = "pause";
}
else
{
rbtnPlayPauseToggle.Image = Properties.Resources.MediaPlay_40; // toggle to ‘MediaPlay_40.png’ image
rbtnPlayPauseToggle.Text = "play";
}
rbtnPlayPauseToggle.Refresh();
==== * RadCheckBox – rchk ====
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
* 'text' text label
* 'CheckAlignment' checkbox location in relation to the label
* 'Checked' True/False (get & set) (somehow tied to 'ToggleState' as well)
* ‘RightToLeft’ = Yes puts the text label to the left of the checkbox.
==== * RadDropDownButton – rddbtn ====
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.
{{tdn:image101.png?190x114|A green and black text on a green box Description automatically generated}}
==== RadSplitButton – rsbtn ====
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.
{{tdn:image102.png?157x119|A screenshot of a computer Description automatically generated}}
//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//.
* ‘Items’ – the possible button contents: RadMenuItem, RadMenuSeparatorItem, RadMenucomboItem, RadMenuButtonItem, RadMenuHeaderItem
* ‘Image’ - property of the RadMenuItem enables you to include an icon next to the Item
* ‘DefaultItem’ sets the default by Item name Ex: radSplitButton1.DefaultItem = mainItem;
==== * RadRadioButton – rrdo ====
http://www.telerik.com/help/winforms/buttons-radiobutton-overview.html\\
http://www.telerik.com/community/forums/winforms/buttons.aspx\\
{{tdn:image103.png?128x81|A group of flags with text Description automatically generated}}
Put multiple in a RadGroupBox
**Properties**
‘IsChecked’ = True, button is filled in
==== RadRepeatButton – rrbtn ====
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.
{{tdn:image104.gif?322x157|A screenshot of a computer Description automatically generated}}
==== RadToggleButton – rtbtn ====
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.
{{tdn:image105.png?180x117|A screenshot of a computer error Description automatically generated}}
* 'ToggleState' On/Off
* 'Text' \Behavior
To wrap the text label, 'AutoSize' = False, 'TextWrap' = True, adjust 'Size' as required.
* 'Name' \Design
==== RadToggleSwitch – rts ====
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.
{{tdn:image106.gif?130x92|A screenshot of a computer error Description automatically generated}}
===== RadControls – Menus & Toolbars =====
http://www.telerik.com/help/winforms/menus-menu-overview.html
==== RadApplicationMenu – ram ====
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.
{{tdn:image107.png?271x192|A screenshot of a computer Description automatically generated}} {{tdn:image108.png?290x203|A screenshot of a computer Description automatically generated}}
See [[#radribbonbar-rrb|RadRibbonBar]] for more property info.
* ‘Text’ – shows up on the button itself
* ‘ButtonItems’ collection defines buttons on the bottom of the dropdown. For example the RadRibbonBar comes with an
rmiLastSync.Enabled = false; // disable highlight on mousehover and click event
rmiLastSync.UseDefaultDisabledPaint = false; // control is disabled but don't show as grey text
==== RadContextMenuManager – rcmm ====
[[http://www.telerik.com/help/winforms/menus-context-menu-assign-radcontextmenu-to-telerik-and-non-telerik-controls.html|__http:%%//%%www.telerik.com/help/winforms/menus-context-menu-assign-radcontextmenu-to-telerik-and-non-telerik-controls.html__]]
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.
==== * RadCommandBar – rcb ====
[[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: [[http://www.telerik.com/videos/winforms/working-with-radcommandbar-for-winforms|Working with RadCommandBar]]\\ [[http://docs.telerik.com/devtools/winforms/commandbar/save-and-load-layout|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.
{{tdn:image110.png?566x65|A screenshot of a computer Description automatically generated}}
Basically a Toolbar. Can add buttons, dropdowns, etc.
[[http://docs.telerik.com/devtools/winforms/commandbar/structure|The structure]] works like this:
* RadCommandBar
* CommandBarRowElement - rcbre (1 or more rows)
* CommandBarStripElement –rcbse (1 or more strips within a row)
* ‘DisplayName’ is visible to users at runtime in the Overflow button dialog
* ‘StretchHorizontally’ to make a Strip fill the available width on the Row.
* RadCommandBarGripButton
* Items (various)
* CommandBarButton - rcbbtn
* CommandBarDropDownButton - rcbddbtn
* CommandBarDropDownList - rcbddl
* CommandBarHostItem – can host other controls like date selector or checkbox
* CommandBarSeparator
* CommandBarLabel - rcblbl
* CommandBarTextBox - rcbtxt
* CommandBarToggleButton
* CommandBarSplitButton
* RadCommandBarOverflowButton
**//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|Add Resources to a Solution (Icons, Graphics, Files, etc.)]]
[[\\192.168.93.1\KB_MiM\Telerik\20160204)%20Add%20Icon%20Graphics%20to%20a%20VS%20Solution%20(Project%20Resource%20File).mp4|Here’s my updated video on how to add Icon Graphics to a Solution]]\\ {{tdn:image111.png?395x267|A screenshot of a computer Description automatically generated}}
The default icons are all small (16x16) but if you use a bigger icon (32x32 or 64x64) the RadCommandBar will expand as required. You can also force it in code. For example show 32x32 image in CommandBarButton like this:\\ 1. Use image with size 32x32.\\ 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
radCommandBar1.Rows[0].Strips[0].Orientation = Orientation.Vertical;
* ‘VisibleInStrip’ Item property to hide a control from the Strip.
* [[http://docs.telerik.com/devtools/winforms/commandbar/item-types|Item Types]] (arranged in ItemsLayout)
* **CommandBarButton** – rcbbtn
* ‘DrawText’ = True to display the text of the button. Use the ‘TextImageRelation’ property to control the layout of image and text: Overlay, **ImageAboveText**, TextAboveImage, **ImageBeforeText**, TextBeforeImage.
* **CommandBarDropDownButton** – rcbddbtn (Drop down items are rcbddbtni )
* ‘Text’ – the text on the button
* ‘Items’ – rcbddbtni (the buttons that appear in the dropdown)[[https://www.telerik.com/forums/remove-left-side-extra-space-from-dropdownbuttons]]\\ Here’s how to have the main button display text, then have that text change based on the selected button (rcbddbtni - ‘Items’) from the dropdown.
* Set the DropDownButton ‘Text‘ to the default value you want to display.
* Add all the DropDownButton ‘Items’ and set their ‘Text’ properties to the text you want to display if they are selected. Make note of each time control name.
* You have to add a Click Event to each DropDownButton Item (not the parent DropDownButton itself). Use the VS Property Grid dropdown to find each Item (that’s why we remembered them before). Then add a Click event. Here’s a couple of examples of click events that change the Text property on the CommandBarDropDownButton parent control.
*
// '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;
}
* **CommandBarDropDownList** – rcbddl (Drop down items are rcbddli )
* **CommandBarHostItem** – rcbhi (Item that can host any RadElement. Use the HostedElement property to get/set the element that you are hosting. [[http://www.telerik.com/community/forums/winforms/commandbar/add-a-datetimepicker-to-a-commandbar.aspx|For example a RadDateTimePicker]] and here’s how to [[http://www.telerik.com/community/forums/winforms/commandbar/read-value-from-datetimepicker-in-commandbar.aspx|‘Read Value from DateTimePicker in CommandBar’]])
Note: You must use a **CommandBarLabel** with a **CommandBarHostItem**. The built in ‘Text’ value won’t display.
// RadDateTimePicker and RadTimePicker 'CommandBarHostItem's on a RadCommandBar
// Stick this right after “InitializeComponent();” on the form or UC.
SetupHostedItems(); // setup the RadDateTimePicker and RadTimePicker 'CommandBarHostItem's on the RadCommandBar
//Follow up (what’s a better way to say these follow after the function that include the Inititalize()?) with these:
private void SetupHostedItems() // setup the 'CommandBarHostItem's on the RadCommandBar
{
rcbhiStartDate.HostedItem = GenerateDateTimePicker("rdtpStartDate"); // Start Date
rcbhiStartTime.HostedItem = GenerateTimePicker("rtpStartTime"); // Start Time
rcbhiEndDate.HostedItem = GenerateDateTimePicker("rdtpEndDate"); // End Date
rcbhiEndTime.HostedItem = GenerateTimePicker("rtpEndTime"); // End Time
}
private RadDateTimePickerElement GenerateDateTimePicker(string Name) // 'CommandBarHostItem' on the RadCommandBar
{
RadDateTimePickerElement rdtp = new RadDateTimePickerElement();
rdtp.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.FitToAvailableSize;
rdtp.Name = Name;
rdtp.MinSize = new System.Drawing.Size(100, 20);
rdtp.Format = DateTimePickerFormat.Short;
return rdtp;
}
private RadTimePickerElement GenerateTimePicker(string Name) // 'CommandBarHostItem' on the RadCommandBar
{
RadTimePickerElement rtp = new RadTimePickerElement();
rtp.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.FitToAvailableSize;
rtp.Name = Name;
rtp.MinSize = new System.Drawing.Size(100, 20);
return rtp;
}
**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;
* **CommandBarSeparator**
* **CommandBarLabel** - rcblbl
* **CommandBarTextBox**
* **CommandBarToggleButton** – rcbrtb[[https://www.telerik.com/forums/commandbartogglebutton-appearance-when-disabled]]
* **CommandBarSplitButton** - rcbsb
**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.
* [[http://www.telerik.com/help/winforms/commandbar-howto-customize-the-overflow-button.html|Customize the contents of the OverflowButton]]
* Hide the Overflow button\\
radCommandBarStripElement1.OverflowButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; // Or should you use the ‘Hidden’ property?
* Show the Overflow button only when necessary as you resize the formUse the ItemOverflowed and ItemOutOfOverflow events of CommandBarStripElement to show the overflow button only when needed and hide it if not needed. See: [[http://www.telerik.com/forums/hide-remove-add-or-remove-buttons]]
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
AddCommandBar();
radCommandBar1.Rows[0].Strips[0].ItemOverflowed += Form1_ItemOverflowed;
radCommandBar1.Rows[0].Strips[0].ItemOutOfOverflow += Form1_ItemOutOfOverflow;
}
void Form1_ItemOutOfOverflow(object sender, EventArgs e)
{
if (!radCommandBar1.Rows[0].Strips[0].HasOverflowedItems)
{
radCommandBar1.Rows[0].Strips[0].OverflowButton.Visibility = ElementVisibility.Collapsed;
}
}
void Form1_ItemOverflowed(object sender, EventArgs e)
{
radCommandBar1.Rows[0].Strips[0].OverflowButton.Visibility = ElementVisibility.Visible;
}
* Programmatically hide a button on the CommandBar
// 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:\\ {{tdn:image112.png?232x124|C:\Users\rgray\AppData\Local\Temp\SNAGHTML4d8bb2c2.PNG}}
==== * RadMenu – rm ====
[[http://www.telerik.com/help/winforms/menus-menu-overview.html]]\\ [[http://www.telerik.com/community/forums/winforms/menus.aspx|__http:%%//%%www.telerik.com/community/forums/winforms/menus.aspx__]]
RadMenu enables you to integrate attractive and flexible menus on Forms within your Windows applications.
{{tdn:image113.png?300x115|A screenshot of a computer Description automatically generated}} {{tdn:image114.png?91x116|A screenshot of a computer Description automatically generated}}
{{tdn:image115.png?306x238|A screenshot of a program Description automatically generated}} {{tdn:image116.png?387x225|A screenshot of a computer Description automatically generated}}
{{tdn:image117.png?509x51}}{{tdn:image118.png?163x211|A screenshot of a computer Description automatically generated}}
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.//**
=== RadMenuItem – rmi ===
> [[http://www.telerik.com/help/winforms/menus-menu-working-with-radmenu-items-radmenuitem.html]]
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.
* ‘Visibility’ – hide a menu item
* ‘Enabled’ – set the text to grey and disable user interaction
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:\\ {{tdn:image26.png?247x147|C:\Users\rgray\AppData\Local\Temp\SNAGHTML221ed26e.PNG}}
=== Standard Legality Software Help Menu Setup ===
- Add a radMenu control to rfrmMain and name it ‘radMenu’
- Create these RadMenuItems **(Add to ‘ActiveItems’ under top level menu items, and ‘Items’ for sub level menu items)**
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;
- Click “TELERIK | RadControls for WinForms | Add RadAboutBox”. Name the form “rfrmRadAboutBox” and click
using System.Diagnostics; // required by ‘Process’ to launch external apps (like the browser)
- Use this code to rfrmMain.cs to handle the Help Menu clicks
// Help Menu =========================================================================
private void rmiHelpOnline_Click(object sender, EventArgs e)
{
//TODO: FutureFeature - Implement online help system (wiki)
Process.Start("http://www.legalitysoftware.com"); // launch the Legality Software site
}
private void rmiLegalitySoftwareWebsite_Click(object sender, EventArgs e)
{
Process.Start("http:%%//%%www.legalitysoftware.com"); // launch the Legality Software site
}
private void rmiLicenseRegistration_Click(object sender, EventArgs e)
{
//TODO: FutureFeature - Implement licensing
}
private void rmiCheckForUpdates_Click(object sender, EventArgs e)
{
//TODO: Larry - Wire up the Update feature
}
private void rmiAbout_Click(object sender, EventArgs e)
{
using (var rfrmAboutBox = new rfrmRadAboutBox()) // create an instance of the form
{
rfrmAboutBox.ShowDialog(this); // then show/opens it
}
}
==== * RadRibbonBar – rrb ====
[[http://www.telerik.com/help/winforms/ribbonbar-overview.html]]\\ [[http://www.telerik.com/community/forums/winforms/ribbonbar.aspx]]\\ Video: [[http://tv.telerik.com/winforms/radribbonbar/radribbonbar-overview|Overview Video]]
With the RadRibbonBar control you can build user interfaces similar to those used in Microsoft Office.
{{tdn:image119.png?383x309|A screenshot of a computer Description automatically generated}}
**//Consider adding a [[#_RadRibbonForm|RadRibbonForm]] to the Solution rather than adding a RadRibbonBar to a regular RadForm.//**
* The StartButtonImage property specifies an image to use for the
// Stick this right after “InitializeComponent();” on the form
// Hide the AppButton (Office Start button or 'File' tab) on the RadRibbonBar
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
// Hide the QAT (Quick Access Toolbar) on the RadRibbonBar
radRibbonBar1.RibbonBarElement.QuickAccessToolBar.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
//Hide Title Bar - collapse all 3 elements to hide this bar
richTextEditorRibbonBar.RibbonBarElement.QuickAccessToolBar.Visibility = ElementVisibility.Collapsed;
richTextEditorRibbonBar.RibbonBarElement.ApplicationButtonElement.Visibility = ElementVisibility.Collapsed;
richTextEditorRibbonBar.RibbonBarElement.RibbonCaption.Visibility = ElementVisibility.Collapsed;
// Hide any RibbonBar tab with 'Name' = "Hidden" or where 'Text' contains "Hidden" (just the tab, not content)
foreach (Telerik.WinControls.UI.RibbonTab item in radRibbonBar1.CommandTabs) {
if (item.Text.ToLower().Contains("hidden") == true || item.Name.ToLower().Contains("hidden") == true)
item.Visibility = Telerik.WinControls.ElementVisibility.Hidden; // sometimes ‘Collapsed’
}
// Shift Tab Groups to the left when the AppButton (Office Start button or 'File' tab) is collapsed
radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Padding p = radRibbonBar1.RibbonBarElement.TabStripElement.ItemContainer.Padding;
radRibbonBar1.RibbonBarElement.TabStripElement.ItemContainer.Padding = new Padding(0, p.Top, p.Right, p.Bottom);
// Hide the ‘ribbonTab1’ tab on the RadRibbonBar
ribbonTab1.Visibility = Telerik.WinControls.ElementVisibility.Hidden; // sometimes ‘Collapsed’
// Hide the Caret button in the upper right that collapses the RibbonBar
this.radRibbonBar1.RibbonBarElement.ExpandButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
// Select the 1st tab [0] on the RadRibbonBar by default
((Telerik.WinControls.UI.RibbonTab)radRibbonBar1.CommandTabs[0]).IsSelected = true;
Use the ‘Document Outline’ view ( //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
**
public frmMain()
{
InitializeComponent();
SetupRibbonFilters();// add non-standard controls to RadRibbonBar
}
void SetupRibbonFilters()
{
AddDateTimeControl("rdtpStartDate");
AddDateTimeControl("rdtpEndDate");
}
void AddDateTimeControl(string controlName)
{
RadDateTimePicker dtPicker = new RadDateTimePicker();
dtPicker.Name = controlName;
//dtPicker.ThemeName = "Office2007Blue"; // inherits the form theme if not specified
RadHostItem hostItem = new RadHostItem(dtPicker); // placeholder
hostItem.MinSize = new Size(135, 25);
hostItem.MaxSize = new Size(150, 25);
//rrbbgDateFilter.Items.Add(hostItem); // add new control to the specified RibbonGroup
rrbbgDateFilter.Items.Insert(rrbbgDateFilter.Items.Count - 1, hostItem); // insert new control from top down
}
=== Add CheckedDropDownList to RadRibbonBar ===
This control is not available in the RadRibbonBar Items collection, but you can add it in code.
{{tdn:image122.png?226x124|A screenshot of a computer Description automatically generated}}
public frmMain()
{
InitializeComponent();
SetupRibbonFilters(); // add non-standard controls to RadRibbonBar\
}
void SetupRibbonFilters()
{
AddOtherPartyDropDown();
}
void AddOtherPartyDropDown()
{
Dictionary other_parties = new Dictionary(); // create sample data
other_parties.Add(0, "Joe Bob");
other_parties.Add(1, "Jim Bob");
other_parties.Add(2, "Bob Bob");
other_parties.Add(3, "Leroy Bob");
AddCheckedDropDownList("rcddOtherParty", "key", "value", other_parties);\\
}
void AddCheckedDropDownList(string controlName, string dataMember, string valueMember, object dataSource)
{
RadCheckedDropDownList rcddList = new RadCheckedDropDownList();
rcddList.Name = controlName;
rcddList.DataMember = dataMember;
rcddList.ValueMember = valueMember;
rcddList.DataSource = dataSource;
RadHostItem hostItem = new RadHostItem(rcddList); // placeholder
hostItem.MinSize = new Size(150, 25);
hostItem.MaxSize = new Size(150, 25);
rbgOtherParty.Items.Add(hostItem); // add new control to the specified RibbonGroup
}
==== RadPanorama ====
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.
{{tdn:image123.gif?342x280|A screenshot of a computer Description automatically generated}}
==== RadShortcut (Hotkeys) ====
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.
===== RadControls Misc =====
==== RadBreadCrumb – rbc ====
==== RadCarousel ====
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
==== RadClock – rclock ====
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.//
{{tdn:image124.gif?102x97|A clock with a black hand Description automatically generated}}
==== RadDesktopAlert – rda ====
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.
{{tdn:image125.png?294x96|A white and green background with black text Description automatically generated}}
My sample project: [[file:///\\192.168.93.1\KB_MiM\Telerik\LS.TelerikSystrayApp|\\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 " ". [[http://www.telerik.com/help/winforms/tpf-html-like-text-formatting.html|Here is a list]] of supported tags and expressions.
[[http://www.telerik.com/forums/hyperlink-click-9782f6494b85|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);
[[http://www.telerik.com/forums/changing-desktopalert-color|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.//
* ‘ScreenPosition’ accepts six possible positions from the AlertScreenPosition enumerator: TopLeft, TopCenter, TopRight, BottomLeft, BottomCenter, BottomRight
* ‘FixedSize’ defaults to 0,0 for a default size. Set this to override the size, or do it in code:\\
this.radDesktopAlert1.FixedSize = new Size(200, 200);
* ‘CanMove’ default True, enables the Alert to be dragged with the mouse
* ‘AutoCloseDelay’ how long to stay on screen (defaults to 10 sec)
* ‘AutoClose’ whether will disappear after the period of time defined by the property. Set = false to leave open.
* ‘AlertImage’ specifies an icon that will be shown on the left of the alert panel
* ‘ButtonItems’ collection adds custom buttons to the alert
* ‘Opacity’ starting opacity when it appears (defaults to 0.8 – 80%). Changes to 100% on mouse over.
* ‘PopupAnimation’ = true to enable animations
* ‘PopupAnimationFrames’ number frames in the popup animation. More frames means longer animation.
* ‘PopupAnimationDirection’ (default Down) direction of the animation. Down slides down from the initial location. Can aldo have Up, Left or Right.
* ‘PopupAnimationEasing’ different animation easing effects which are used to start and finish the animation.
* ‘FadeAnimationType‘ (default ‘FadeIn,FadeOut ‘)accepts values from FadeAnimationType enum which also allows for combinations of its values.
* You can also use the FadeAnimationFrames property to define the amount of frames used to animate the opacity of the alert’s popup. By increasing the amount of frames you will increase the duration of the fade animation.
* Caption Buttons
* ‘CloseButton’ closes the alert. Use ShowCloseButton to show/hide the button.
* ‘PinButton’ pin the alert on the screen and prevent it from being closed automatically. ShowPinButton to show/hide the button.
* ‘OptionsButton’ displays a drop-down menu with user-defined content from the OptionItems collection. Use ShowOptionsButton to show/hide the button.
==== RadHScrollBar – rhsb ====
See: [[#radtoggleswitch-rts|RadVScrollBar]]
==== +-* RadLabel – rlbl ====
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 [[http://docs.telerik.com/devtools/winforms/telerik-presentation-framework/html-like-text-formatting|HTML-like formatting]] capability. Also see [[http://tv.telerik.com/watch/winforms/utility/enhanced-html-like-markup-support|this video]].
{{tdn:image126.png?248x61|A black text on a white background Description automatically generated}}
//NOTE: Our design policy it to only change the control name from default if we will programmatically change the text.//
* 'Text' \Behavior
* 'Name' \Design
* 'Location' \Layout
* 'Size' \Layout
*
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.
If you have a specific problem we may already have a solution.
If not we can build one for you.
Visit Legality Software to learn more.
{{tdn:image127.png?478x164|A screenshot of a software Description automatically generated}}
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;
==== * RadWizard – rw ====
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
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 1st page
// Or you could show some message to the user
}
}
* Previous - Fires when the Back command button is clicked. It is cancelable event.
* SelectedPageChanging - Fires before the selected page of RadWizard is changed. It is cancelable event. The arguments of the event provide the selected page of the control and the page to be selected.
* SelectedPageChanged - Fires after the selected page of RadWizard is changed. The arguments of the event provide the previous selected page and the selected page of the control.
* Finish - Fires when the Finish command button is clicked.
* Cancel - Fires when the Cancel command button is clicked.
* Help - Fires when the Help command button is clicked.
[[http://www.telerik.com/forums/branching|Custom Page Branching Sample Project]]
[[http://www.telerik.com/forums/navigation-buttons|Custom CommandArea Controls like Navigation Buttons]]
Create multiple Welcome or Completion pages
* ‘WelcomePage’ - Select one of multiple Welcome pages
* ‘WelcomePage.Name’ – Provide a rwppagenameWelcomePage style name from one of multiple Welcome pages
* ‘CompletionPage’ - Select one of multiple Completionpages
* ‘CompletionPage.Name’ – Provide a rwppagenameCompletionPage style name from one of multiple Completionpages
* Edit one of the alternate pages by selecting it from the Quick Task ‘Edit Pages’ list or ‘Pages’ collection, then click