Telerik Forums
UI for WinForms Forum
3 answers
108 views

Hi,

I want to do a validation of the values entered before ending the edit (i.e. if nothing was entered in 1 column or an item wasn't selected from a combobox then show a message and cancel the edit).

Been trawling the forums and can't find the right advice...

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Jan 2018
5 answers
291 views

Hi,

When click dropdown i want to list the item like this:

Monday                Thursday

Tuesday               Friday

Wednesday          Saturday

How can i do with MultiColumn Combobox ? 

 

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Jan 2018
1 answer
330 views
hi, i'm using radform inside a mdi container. i have set the rad form properties as startposition: center parent, windowstate: maximized, formborderstyle:none. when rad form loads inside mdi parent, all the controls on rad form are not in center of form they are shown left side of form,they should be align in center, i have also set anchor as none but controls are still at left side of form.
Hristo
Telerik team
 answered on 02 Jan 2018
1 answer
1.8K+ views

I have a "blueprint" style app with white buttons on a blue background.  When those buttons are in the disabled state, they switch to the default light grey masking which is not very different.

without changing the theme, can I change the "Disabled Color Mask" of a Telerik control like a button on a per-control basis?

Thanks,
Dave

 

Hristo
Telerik team
 answered on 02 Jan 2018
3 answers
342 views

Hi,

I'm trying to create a winform with a few different charts. I'm starting with the pie chart and having a couple issues.

1) I want to have the legend on the left hand side. Under ChartElement, I can see the LegendPosition and have set that to "Left" and in design time I can see it on the left. However, when I run the app it moves back over to the right side.

2) I also want to move legend closer to the pie chart. I found under ChartElement, LegendElement, PositionOffset, I can set that to 100 and it moves it closer, however because of problem 1 above it moves it off the form durning run time (it looks fine at design time).

3) It's displaying the values as percent (%), but in this case I want a hard number. How can I remove/change it from percent base?

Attached is a screen showing how I would like the final look.

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Jan 2018
3 answers
806 views

Hi all,

I have some issues with the control RadDropDownList and particularly with the font size. It seems that the issues appears only with high DPI screen.

I am creating programmatically a RadDropDownList as follow. The drop down list is displayed inside a tablelayoutpanel

 

var radDropDownListCategory = new Telerik.WinControls.UI.RadDropDownList();
radDropDownListCategory.Dock = System.Windows.Forms.DockStyle.Fill;
radDropDownListCategory.Name = $"radDropDownListCategory_{Guid.NewGuid().ToString()}";
radDropDownListCategory.AutoSize = false;
radDropDownListCategory.DropDownAnimationEnabled = false;
radDropDownListCategory.MaximumSize = new System.Drawing.Size(0, 50);
radDropDownListCategory.RootElement.MaxSize = new System.Drawing.Size(0, 50);
radDropDownListCategory.DropDownListElement.ListElement.Font = new System.Drawing.Font("Segoe UI", 9F);
radDropDownListCategory.Font = new System.Drawing.Font("Segoe UI", 9F);
radDropDownListCategory.ListElement.Font = new System.Drawing.Font("Segoe UI", 9F);
radDropDownListCategory.RootElement.Font = new System.Drawing.Font("Segoe UI", 9F);
radDropDownListCategory.AutoSizeItems = true;

 

It seems that with high DPI screen i have the following behavior:

- the dropdown list font size is ok and match my settings (9)

- when i select an element from the dropdown list, the select element is displayed in the textbox but with a font size is much bigger

Do you have any idea how to solve this issue? This issue does not appear with lower dpi screen apparently

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Dec 2017
0 answers
130 views

Hello all 

how to populate data from GridViewMultiComboBoxColumn in column ContactName to GridView to column 1  after dropdownclosed?

and make full fill in last column in GridViewMultiComboBoxColumn 

 

Thanks before

 

Hengky

 

Hengky
Top achievements
Rank 1
Veteran
 asked on 29 Dec 2017
68 answers
327 views

Hi all

I have downloaded the trial today for Winforms and the main reason for this is to be able to theme the controls so it will display the way I want it to on all versions of Windows (I am a bit picky when it comes to my user interface :) ).

I have in my application three distinct modules and each module has its own color base, green, blue and red (and buttons also have a fourth, grey). The application is currently a Flash Builder Application, so achieving the different colors was not an issue, changing it to a C# application has meant major time delays as I attempt to replicate what was so easily achievable as a Flash Builder application.

Anyway, the controls I mainly use are TextBoxes, ComboBoxes, CheckBoxes, DataGrids, Buttons and Custom popup forms. I played with the buttons today (yes I chose the easiest first) and I have this working perfectly. I then tried TextBoxes and ComboBoxes and hit a wall. The text highlight color and mouse hover over colors, I can't seem to locate to change.

Other things I currently do is that my  have alternating row colors, so do my . I also have specific row and text formatting for some  if a certain cell contains a specific qualifier.

Is it possible for a Checkbox to have an X instead of a tick?

Is this all possible with this or am I needing to look at something else?

I also would prefer the main application form to be unthemed, running as it would natively, just the controls within the application to be themed, is that possible?

Hopefully, this will be what I am after, I have tried Nevron Controls and even though it looks like that can achieve this, their documentation and examples have no meat on the bones, so it is difficult to pick up quickly without support's assistance.

thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Dec 2017
6 answers
4.4K+ views

I was wondering how I can vertically align the text input in the center? I can horizontally align, but my text still appears at the top of the TextBoxControl and I want it vertically centered.

 

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Dec 2017
5 answers
296 views

I'm currently using 2009.1.9.414 and i made sure the Multiselect option was set to true and the selectionmode was row but with no results. Here is the designer code for the grid

 

 

 

        Me.RadGridView_SessionData.AllowShowFocusCues = True 
        resources.ApplyResources(Me.RadGridView_SessionData, "RadGridView_SessionData")  
        Me.RadGridView_SessionData.BackColor = System.Drawing.Color.Black  
        Me.RadGridView_SessionData.Cursor = System.Windows.Forms.Cursors.Default 
        Me.RadGridView_SessionData.EnableFastScrolling = True 
        Me.RadGridView_SessionData.EnableHotTracking = False 
        Me.RadGridView_SessionData.ForeColor = System.Drawing.Color.White  
        '  
        '  
        '  
        Me.RadGridView_SessionData.MasterGridViewTemplate.AllowAddNewRow = False 
        Me.RadGridView_SessionData.MasterGridViewTemplate.AllowCellContextMenu = False 
        Me.RadGridView_SessionData.MasterGridViewTemplate.AllowColumnChooser = False 
        Me.RadGridView_SessionData.MasterGridViewTemplate.AllowColumnHeaderContextMenu = False 
        Me.RadGridView_SessionData.MasterGridViewTemplate.AllowDeleteRow = False 
        Me.RadGridView_SessionData.MasterGridViewTemplate.AllowEditRow = False 
        Me.RadGridView_SessionData.MasterGridViewTemplate.AllowRowResize = False 
        GridViewTextBoxColumn1.AllowGroup = False 
        GridViewTextBoxColumn1.AllowResize = False 
        GridViewTextBoxColumn1.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        resources.ApplyResources(GridViewTextBoxColumn1, "GridViewTextBoxColumn1")  
        GridViewTextBoxColumn1.FieldName = "DeviceName" 
        GridViewTextBoxColumn1.IsAutoGenerated = True 
        GridViewTextBoxColumn1.Multiline = True 
        GridViewTextBoxColumn1.ReadOnly = True 
        GridViewTextBoxColumn1.UniqueName = "DeviceName" 
        GridViewTextBoxColumn1.VisibleInColumnChooser = False 
        GridViewTextBoxColumn1.Width = 118  
        GridViewTextBoxColumn1.WrapText = True 
        GridViewTextBoxColumn2.AllowGroup = False 
        GridViewTextBoxColumn2.AllowResize = False 
        GridViewTextBoxColumn2.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        GridViewTextBoxColumn2.DataType = GetType(System.TimeSpan)  
        resources.ApplyResources(GridViewTextBoxColumn2, "GridViewTextBoxColumn2")  
        GridViewTextBoxColumn2.FieldName = "AirTime" 
        GridViewTextBoxColumn2.IsAutoGenerated = True 
        GridViewTextBoxColumn2.ReadOnly = True 
        GridViewTextBoxColumn2.UniqueName = "qwer" 
        GridViewTextBoxColumn2.VisibleInColumnChooser = False 
        GridViewTextBoxColumn2.Width = 80  
        GridViewDecimalColumn1.AllowGroup = False 
        GridViewDecimalColumn1.AllowResize = False 
        GridViewDecimalColumn1.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        GridViewDecimalColumn1.DataType = GetType(Integer)  
        resources.ApplyResources(GridViewDecimalColumn1, "GridViewDecimalColumn1")  
        GridViewDecimalColumn1.FieldName = "qew" 
        GridViewDecimalColumn1.ImageLayout = System.Windows.Forms.ImageLayout.None  
        GridViewDecimalColumn1.ReadOnly = True 
        GridViewDecimalColumn1.StretchVertically = False 
        GridViewDecimalColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter  
        GridViewDecimalColumn1.UniqueName = "qewr" 
        GridViewDecimalColumn1.VisibleInColumnChooser = False 
        GridViewDecimalColumn1.Width = 80  
        GridViewImageColumn1.AllowResize = False 
        GridViewImageColumn1.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        GridViewImageColumn1.DataType = GetType(System.Drawing.Image)  
        resources.ApplyResources(GridViewImageColumn1, "GridViewImageColumn1")  
        GridViewImageColumn1.FieldName = "qwe" 
        GridViewImageColumn1.UniqueName = "ewr" 
        GridViewImageColumn1.VisibleInColumnChooser = False 
        GridViewImageColumn1.Width = 70  
        GridViewImageColumn2.AllowResize = False 
        GridViewImageColumn2.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        GridViewImageColumn2.DataType = GetType(System.Drawing.Image)  
        resources.ApplyResources(GridViewImageColumn2, "GridViewImageColumn2")  
        GridViewImageColumn2.FieldName = "asd" 
        GridViewImageColumn2.UniqueName = "asdf" 
        GridViewImageColumn2.VisibleInColumnChooser = False 
        GridViewImageColumn2.Width = 70  
        GridViewImageColumn3.AllowResize = False 
        GridViewImageColumn3.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        GridViewImageColumn3.DataType = GetType(System.Drawing.Image)  
        resources.ApplyResources(GridViewImageColumn3, "GridViewImageColumn3")  
        GridViewImageColumn3.FieldName = "asdf" 
        GridViewImageColumn3.UniqueName = "asdf" 
        GridViewImageColumn3.VisibleInColumnChooser = False 
        GridViewImageColumn3.Width = 60  
        GridViewImageColumn4.AllowResize = False 
        GridViewImageColumn4.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        GridViewImageColumn4.DataType = GetType(System.Drawing.Image)  
        resources.ApplyResources(GridViewImageColumn4, "GridViewImageColumn4")  
        GridViewImageColumn4.FieldName = "Range" 
        GridViewImageColumn4.UniqueName = "Range" 
        GridViewImageColumn4.VisibleInColumnChooser = False 
        GridViewImageColumn4.Width = 80  
        GridViewTextBoxColumn3.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        resources.ApplyResources(GridViewTextBoxColumn3, "GridViewTextBoxColumn3")  
        GridViewTextBoxColumn3.FieldName = "Assignment" 
        GridViewTextBoxColumn3.IsAutoGenerated = True 
        GridViewTextBoxColumn3.ReadOnly = True 
        GridViewTextBoxColumn3.UniqueName = "Assignment" 
        GridViewTextBoxColumn3.VisibleInColumnChooser = False 
        GridViewTextBoxColumn3.Width = 80  
        GridViewTextBoxColumn4.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting  
        resources.ApplyResources(GridViewTextBoxColumn4, "GridViewTextBoxColumn4")  
        GridViewTextBoxColumn4.FieldName = "Division" 
        GridViewTextBoxColumn4.IsAutoGenerated = True 
        GridViewTextBoxColumn4.ReadOnly = True 
        GridViewTextBoxColumn4.UniqueName = "Division" 
        GridViewTextBoxColumn4.VisibleInColumnChooser = False 
        GridViewTextBoxColumn4.Width = 100  
        GridViewImageColumn5.DataType = GetType(Byte())  
        resources.ApplyResources(GridViewImageColumn5, "GridViewImageColumn5")  
        GridViewImageColumn5.FieldName = "DeviceID" 
        GridViewImageColumn5.IsAutoGenerated = True 
        GridViewImageColumn5.IsVisible = False 
        GridViewImageColumn5.UniqueName = "qwer" 
        GridViewImageColumn5.Width = 200  
        GridViewDecimalColumn2.DataType = GetType(Integer)  
        resources.ApplyResources(GridViewDecimalColumn2, "GridViewDecimalColumn2")  
        GridViewDecimalColumn2.FieldName = "IncidentID" 
        GridViewDecimalColumn2.IsAutoGenerated = True 
        GridViewDecimalColumn2.IsVisible = False 
        GridViewDecimalColumn2.UniqueName = "IncidentID" 
        GridViewDecimalColumn3.DataType = GetType(Integer)  
        resources.ApplyResources(GridViewDecimalColumn3, "GridViewDecimalColumn3")  
        GridViewDecimalColumn3.FieldName = "UserID" 
        GridViewDecimalColumn3.IsAutoGenerated = True 
        GridViewDecimalColumn3.IsVisible = False 
        GridViewDecimalColumn3.UniqueName = "UserID" 
        GridViewDecimalColumn3.Width = 124  
        GridViewDecimalColumn4.DataType = GetType(Integer)  
        resources.ApplyResources(GridViewDecimalColumn4, "GridViewDecimalColumn4")  
        GridViewDecimalColumn4.FieldName = "SessionID" 
        GridViewDecimalColumn4.IsAutoGenerated = True 
        GridViewDecimalColumn4.IsVisible = False 
        GridViewDecimalColumn4.ReadOnly = True 
        GridViewDecimalColumn4.UniqueName = "SessionID" 
        GridViewDecimalColumn5.DataType = GetType(Integer)  
        resources.ApplyResources(GridViewDecimalColumn5, "GridViewDecimalColumn5")  
        GridViewDecimalColumn5.FieldName = "NodeID" 
        GridViewDecimalColumn5.IsAutoGenerated = True 
        GridViewDecimalColumn5.IsVisible = False 
        GridViewDecimalColumn5.UniqueName = "NodeID" 
        GridViewDecimalColumn6.DataType = GetType(Integer)  
        resources.ApplyResources(GridViewDecimalColumn6, "GridViewDecimalColumn6")  
        GridViewDecimalColumn6.FieldName = "TankMaxPressure" 
        GridViewDecimalColumn6.IsAutoGenerated = True 
        GridViewDecimalColumn6.IsVisible = False 
        GridViewDecimalColumn6.UniqueName = "TankMaxPressure" 
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewTextBoxColumn1)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewTextBoxColumn2)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn1)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn1)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn2)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn3)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn4)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewTextBoxColumn3)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewTextBoxColumn4)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn5)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn2)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn3)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn4)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn5)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn6)  
        Me.RadGridView_SessionData.MasterGridViewTemplate.DataSource = Me.SessionBindingSource  
        Me.RadGridView_SessionData.MasterGridViewTemplate.ShowGroupedColumns = True 
        Me.RadGridView_SessionData.MultiSelect = True 
        Me.RadGridView_SessionData.Name = "RadGridView_SessionData" 
        Me.RadGridView_SessionData.NewRowEnterKeyMode = Telerik.WinControls.UI.RadGridViewNewRowEnterKeyMode.None  
        Me.RadGridView_SessionData.ReadOnly = True 
        '  
        '  
        '  
        Me.RadGridView_SessionData.RootElement.ForeColor = System.Drawing.Color.White  
        Me.RadGridView_SessionData.RootElement.Text = Global.ScottHealthSafety.SEMS.UI.Windows.My.Resources.Resources.Appcopyright  
        Me.RadGridView_SessionData.ThemeName = "BlueGrid3" 

 

 

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