Telerik Forums
UI for WinForms Forum
8 answers
349 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
299 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
129 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
174 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
149 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
117 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
543 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
241 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
1 answer
115 views

WinForms / VB.net / .NET 4.0 / Visual Studio 2010

I have a gridview which is using ColumnGroupsView to group certain fields, which is all working fine.

However, there is an issue when exporting using the SpreadExport function. If my grid is:

Group 1

---Column 1

---Column 2

---Column 3

Group 2

---Column 4

---Column 5

Group 3

---Column 6

---Column 7

 

When exported, the row with the group names in, has the first 3 cells merged for "Group 1", the next 2 cells merged for "Group 2" and the next 2 cells merged for "Group 3" as you would expect, and each has the relevent columns underneath it.

If you hide a column 3 using the gridview though, then export, the group headers still have the same number of cells merged, which means that under "Group 1" you now see Column 1, Column 2, Column 4. Under "Group 2" you now have Column 5, Column 6. Under "Group 3" you have Column 7 and a blank column.

How can I fix this?

Thanks

Dimitar
Telerik team
 answered on 09 Mar 2016
3 answers
130 views

Hi there

i've currently got a working gauge. it uses negative a positive numbers

but at the moment when it uses a positive number it it highlights from -200 to 10

is the way to set the needle to 0 point (in the middle) and have it go from either side of that 0? and also show the number 0?

i have attached a drawing of what i mean

regards
Jeremy

Dimitar
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?