Telerik Forums
UI for WinForms Forum
8 answers
124 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
136 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
360 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
306 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
135 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
187 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
154 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
122 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
5 answers
561 views

Hi, 

I have a Property Grid. One of the Items states a read-only description. The describes what the object was created for. I.e. say it's a report, it will say something as: "This report was created in order to show sales history, comments and manufacturing information to assist sales reps in their quotes." The length is way to big for the height or width of the cell. So I am trying to make this particular property to be wrapped, or show an ellipses so that the user can expand the field and read the whole Description. I could also work with a tooltip but I would need the tooltip to be sized and scrollable in case the description is too long. 

This property is read-only. 

Regards, 

 

Carlitos

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Mar 2016
5 answers
253 views

I am trying to implement an Excel-like enter key behavior where pressing enter moves to the next cell only within the selected cells. I am handling KeyDown and everything works fine using Grid.CurrentColumn to move the CurrentCell between columns. However as soon as my selection is more than one row and I need to wrap to the next row, setting Grid.CurrentColumn kills the SelectedCells collection. I tried every manner of selecting a current cell that I could find, but nothing helps. Most are worse. Using GridNavigator kills the selection for any move, and setting the IsCurrent property of the row kills the selection even if the row hasn't changed.

 

All of the documentation I can find explicitly states that the current cell and the selected cells are supposed to be independent. Am I missing something?

 

I have MultiSelect on and SelectionMode = CellSelect, and I am using VirtualMode for the data.

Dess | Tech Support Engineer, Principal
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?