Telerik Forums
UI for WinForms Forum
1 answer
197 views

Hi,

I have a RadDropDownList control in my WinForms window. Right now, when I click on this control for the first time since opening a window, the whole text inside RadDropDownList text box is selected.  What I would like to happen is to just set cursor at the end of existing text with no text selection.

I tried handling most of the events for RadDropDownList (like GotFocus or Click) with:

    private void OnGotFocus(object sender, EventArgs e)
    {
      SelectionLength = 0;
      SelectionStart = Text.Length;
    }

When I checked during debugging, the selection is properly changed by my method, but in the end the text is selected whole by something else after that.

How can I get no text selection when clicking first time into this RadDropDownList text box?

Any ideas?

 

Thanks

Wojtek

 

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Feb 2024
1 answer
88 views

hello, i have use the approach from article https://docs.telerik.com/devtools/winforms/knowledge-base/display-and-edit-html-text-in-grid-cells to

show html in gridview ,but after set the datasource , the html style didn't display.  Just like the following image ,i have set the color to red use font element:

the second problem is that ,when the grid view render finished ,the first cell of the gridview is selected and the backgroud color is blue, when i set the second cell to selected , the first cell bgcolor not changed. the method clearSelection of the GridView cann't work,even though i called this method in constructor ,the first cell bgcolor is still blue.

thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 31 Jan 2024
0 answers
165 views
As of 2024 Q2, we will deprecate .NET Framework 4.0 and .NET Core 3.1 distributions. This decision is rooted in our dedication to align with Microsoft’s recommended framework versions so that our products leverage the latest advancements in technology, security, and performance.  

We are aligning our product with Microsoft’s lowest-supported framework versions for .NET Framework and .NET, respectively. Please refer to the following blog post: Product Update for Enhanced Performance and Security (telerik.com)

For more information about how to upgrade your project when a new version of the Telerik UI for WinForms suite is released, you can check here: How to Upgrade a Telerik UI for WinForms Project - Telerik UI for WinForms
Nadya | Tech Support Engineer
Telerik team
 updated question on 31 Jan 2024
3 answers
90 views
   at Telerik.WinControls.UI.GridCommandCellElement.Detach() in Telerik.WinControls.UI\GridCommandCellElement.cs:line 41
   at Telerik.WinControls.UI.BestFitHelper.Detach(IVirtualizedElementProvider`1 cellElementProvider, GridCellElement cell) in Telerik.WinControls.UI\BestFitHelper.cs:line 388
   at Telerik.WinControls.UI.BestFitHelper.MeasureCell(GridViewRowInfo row, GridViewColumn column, BestFitColumnMode mode) in Telerik.WinControls.UI\BestFitHelper.cs:line 257
   at Telerik.WinControls.UI.BestFitHelper.CalculateColumnWidth(GridViewColumn column, BestFitColumnMode mode) in Telerik.WinControls.UI\BestFitHelper.cs:line 203
   at Telerik.WinControls.UI.BestFitHelper.BestFitColumnsCore(Nullable`1 mode) in Telerik.WinControls.UI\BestFitHelper.cs:line 139
   at Telerik.WinControls.UI.BestFitHelper.ProcessRequests() in Telerik.WinControls.UI\BestFitHelper.cs:line 76
   at Telerik.WinControls.UI.RowsContainerElement.MeasureOverride(SizeF availableSize) in Telerik.WinControls.UI\RowsContainerElement.cs:line 211
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.UI.ScrollViewElement`1.MeasureViewElement(SizeF availableSize)
   at Telerik.WinControls.UI.ScrollViewElement`1.MeasureView(SizeF availableSize)
   at Telerik.WinControls.UI.ScrollViewElement`1.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.UI.GridTableElement.MeasureOverride(SizeF availableSize) in Telerik.WinControls.UI\GridTableElement.cs:line 2396
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.Layouts.DockLayoutPanel.MeasureOverride(SizeF constraint)
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.UI.LightVisualElement.MeasureElements(SizeF availableSize, SizeF clientSize, Padding borderThickness)
   at Telerik.WinControls.UI.LightVisualElement.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.RootRadElement.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.RootRadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.RadElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)
   at Telerik.WinControls.RadControl.GetRootElementDesiredSize(Int32 x, Int32 y, Int32 width, Int32 height)
   at Telerik.WinControls.RadControl.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
   at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
   at System.Windows.Forms.Layout.DefaultLayout.ApplyCachedBounds(IArrangedElement container)
   at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)
   at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
   at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
   at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
   at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
   at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
   at System.Windows.Forms.Control.OnResize(EventArgs e)
   at System.Windows.Forms.Panel.OnResize(EventArgs eventargs)
   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.UI.RadPageViewPage.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Nadya | Tech Support Engineer
Telerik team
 answered on 31 Jan 2024
1 answer
80 views

Hi,

Is it possible to have multiple grids in your chart when working with multiple axes? I only get the grid for the last axis, which is the yellow one in the image below. I would like to have a grid for each axis.

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jan 2024
1 answer
69 views
Hi,

I want to have functionality that user can add row in a grid but cannot update the existing data in a grid how we can do.
hope you understand my requirement.

i.e. Row Insert Allowed but update not allowed.

Thanks,
Shubham Jain
Nadya | Tech Support Engineer
Telerik team
 answered on 30 Jan 2024
1 answer
91 views
I'd like to hide the formula bar on the spreadsheet control. Can this be done?  (see attached)
Nadya | Tech Support Engineer
Telerik team
 answered on 26 Jan 2024
2 answers
113 views

Hello team,

As said in the title, I have a Chart with a cartesian grid visible and working fine. The problem is when I add a series programmatically and the series data is empty (see img.2): my chart displays the new axis as expected with no values since there is no data for the series, but the grid disappears.

Img.1 : Two series with data. The grid is visible fine.

Img.2: Two series with one empty. The grid disappears.

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Jan 2024
1 answer
1.5K+ views

Why do some C# applications have an app.config file and others do not? Both of these solutions were initialized as Visual C# Windows Form Applications.

This one I created in Visual Studio Community version:

This screen capture bit is from a youtube tutorial. I followed along with the instructor in the video and He created it with a menu selection as a Visual C# -> Windows Form Application.

I tried following along with the tutorial and I noticed that the instructor's IDE, Visual Studio Community version, had a Solution Explorer that included the app.config file. I am curious and concerned because I believe system settings can be entered into the app.config file and so his code will be different from mine and my code might not even run at all.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Jan 2024
1 answer
68 views
I am using a gridview, I have a column created without linking to combo type data, in the createcell event I fill the combo list but when selecting an element it is not shown in the column, however its value is taken. Could someone help me now? break your head
Nadya | Tech Support Engineer
Telerik team
 answered on 23 Jan 2024
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?