Telerik Forums
UI for WinForms Forum
1 answer
169 views

Hei,

 

I would like to do some changes to the RichTextEditorRibbonBar's style gallery like changing the "Normal" style and adding/deleting new/existing styles.

How can I do it programmatically?

Thanks.

Hristo
Telerik team
 answered on 11 Mar 2016
3 answers
105 views

How to implement two MultiColumnCombobox Columns in a gridview as the second combo datasource is based on the first combo value .

When I tried this, the  values of the second combocolumn is lost except for the current row

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Mar 2016
8 answers
133 views

I am fairly new to Telerik winforms. I have this issue that I have no idea how to troubleshoot. Can someone help please? 

I made two base user controls that one contains a RadLabel and MaskedTextBox, and another contains Raddropdownlist and RadLabel. And then I put these two base user controls to third user control. Now I want to change the textbox background color of MaskedTextBox and RadDropDownList inside the third user control, when the third control is loaded.

Inside the ThirdControl_Load function, I can use the following code to change the background color of RadDropDownList: 

radDropdownlist1.radDropDownList.DropDownListElement.EditableElement.BackColor = Color.Red;

However, I can not do the same thing to MaskedTextBox. There is no such an option for me to get to the MaskedTextBox elements. Basically, after I type

maskedTextBox1.
unlike the dropdownlist above, there is no radMaskedTextBox field to choose. Can anyone show me how to find the reference to maskedTextBox properties inside the third control, please? Thank you!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Mar 2016
5 answers
147 views
I have down loaded your 30 day trail UI for WinForms. And, would like to build and distribute the QuickStart example provided to other team members so they can review/see features provided. Do you provide an installation package to install Telerik runtime components? Is this possible with trail version?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Mar 2016
8 answers
373 views

Hi,

Just wanted to see what options I had for a custom data entry form.

I have a radDataEntry control working with a BindingNavigator, but is there a way for me to design a form with the control/layout I want and connect that to the BindingNavigator so all the populate/save functionality is there, just with my custom UI?

Cheers,

Damian

Dimitar
Telerik team
 answered on 11 Mar 2016
5 answers
329 views

I'm working with the Trialversion and I'm trying to find out if the GridViewComboBoxColumn allows filtering based on the value of the previous column.

Datasource of GridViewComboBoxColumn :

USA      Colorado

USA      Iowa
Canada Quebec
Canada Ontario

Datagrid:

Country     ¦      State

--------------¦---------------------------------------------------------------

USA          ¦     Combobox which shows only the states of US (Colorado, Iowa)

 

Have somebody an example?

Thanks a lot for your help

Dimitar
Telerik team
 answered on 11 Mar 2016
4 answers
143 views
I have inherited DateTimePicker control in a custom UserControl but now the usercontrol does not have some properties like Value, Format, etc. How do I override / access these properties in my main form when I use these usercontrols?
Ke
Top achievements
Rank 1
 answered on 10 Mar 2016
7 answers
200 views
Hi,

I'm trying to programmatically change the fill colour of the series on my chart and for some reason I'm not getting it to work.

This is the code I'm currently using.

radChart1.SkinsOverrideStyles = false;
            chartSeries.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Gradient;
            chartSeries.Appearance.FillStyle.FillSettings.GradientMode = Telerik.Charting.Styles.GradientFillStyle.Horizontal;
            chartSeries.Appearance.FillStyle.MainColor = Color.FromArgb(255, 55, 96, 145);
            chartSeries.Appearance.FillStyle.SecondColor = Color.FromArgb(255, 184, 204, 228);
  
            radChart1.UpdateGraphics();

Obviously I'm either missing something or the above code is completely wrong, can someone help please?

Regards,

Guy
Dimitar
Telerik team
 answered on 10 Mar 2016
3 answers
172 views

I have a form with a grid on it, as well as some other controls. I can click between the grid and the other controls without any issues until I edit a cell using a custom editor through Editor Required. It seems that the grid may still be trying to give the control focus even through it isn't valid any more? Unfortunately the error only occurs on my test machine and not my dev machine, so I doubt that giving a sample would help. I am providing through the relevant snippets of code in the hopes that I am just doing something obviously wrong with setting up the custom editor.

First, this is the exception:

System.NullReferenceException: Object reference not set to an instance of an object.

   at Telerik.WinControls.UI.ImeSupport.CreateContext()
   at Telerik.WinControls.UI.ImeSupport.OnGotKeyboardFocus(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnGotFocus(EventArgs e)
   at Telerik.WinControls.RadControl.OnGotFocus(EventArgs e)
   at Telerik.WinControls.UI.RadGridView.OnGotFocus(EventArgs e)
   at System.Windows.Forms.Control.WmSetFocus(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

This is the custom editor class:

    Private Class CustomTextEditor
        Inherits Telerik.WinControls.UI.RadTextBoxControlEditor
        Public Overrides Sub OnKeyDown(e As Forms.KeyEventArgs)
            Try
                If e.KeyCode = Forms.Keys.Enter Then
                    Dim Cell As Telerik.WinControls.UI.GridDataCellElement = DirectCast(Me.OwnerElement, Telerik.WinControls.UI.GridDataCellElement)
                    Dim View As Telerik.WinControls.UI.MasterGridViewTemplate = DirectCast(Cell.ViewTemplate, Telerik.WinControls.UI.MasterGridViewTemplate)
                    View.Owner.EndEdit()
                Else
                    MyBase.OnKeyDown(e)
                End If
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
        End Sub
    End Class

I still get the exception even if I never actually process any of my custom enter key code (it just passes through to MyBase.OnKeyDown

 

This is the code that creates the editor

    Private Sub OnCustomEditor(sender As Object, e As Telerik.WinControls.UI.EditorRequiredEventArgs)

        Try
            e.EditorType = GetType(CustomTextEditor)
        Catch ex As Exception
            Util.Exceptions.Exception.Display(ex)
        End Try
    End Sub

I initially called e.Editor = New CustomTextEditor(), but changed to set EditorType after some examples I found. However it doesn't make any difference.

Dimitar
Telerik team
 answered on 10 Mar 2016
5 answers
140 views

Can't confirm if this is mentioned anywhere so I wanted to let you know just in case...

For a RadDropDownList that isn't currently visible (it's added dynamically to a panel which isn't currently in focus even though the parent form itself is loaded and visible) the .Bottom and .Height properties don't return the correct values if AutoSize = true. .Height =0 and instead of giving the correct .Bottom value it returns the .Top value - I assume this is because .Height = 0.

If I leave all code exactly as it is but set AutoSize = false then .Bottom and .Height are calculated perfectly.

This is pretty counter intuitive since the RadDropDownList is 100% established except it hasn't yet been displayed. At this point there are no items in the list though so I'm guessing that might be breaking the AutoSize.

Hristo
Telerik team
 answered on 09 Mar 2016
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?