Telerik Forums
UI for WinForms Forum
0 answers
89 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
0 answers
4 views

I have this to change the tabs colors when selected/unselected 

         {

           .....

            this.radDock1.ActiveWindowChanging += new DockWindowCancelEventHandler(radDock1_ActiveWindowChanging);
            this.radDock1.ActiveWindowChanged += new DockWindowEventHandler(radDock1_ActiveWindowChanged);

         }

        void radDock1_ActiveWindowChanged(object sender, DockWindowEventArgs e)
        {
            SizeAndColorSelectedDocWindowTab(e.DockWindow.TabStripItem, Color.LightBlue, Color.CornflowerBlue);
        }

        void radDock1_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e)
        {
            SizeAndColorUnSelectedDocWindowTab(e.OldWindow.TabStripItem, Color.CornflowerBlue, Color.DarkBlue);
        }

 

But how can I change the color of the Tab title? when unselected the text almost disappears, I would like to change to a whiter color

 

Also, this works when the children are Tabbed, how can I implement something similar on titlebar when DockPosition.Left  (or anything else than tabbed) ?

Carlos
Top achievements
Rank 1
 asked on 10 May 2024
0 answers
2 views

When using the filtering cells on the gridview, let's say it is set to "Contains:" 

When the user types in that filter cell, the word "Contains:" remains visible and uses up most of the space where the user is typing... this often results in the letters or numbers that the user is typing there to become 'chopped off'.

For example, if the column width is 100 and the user is typing a 3 digit number "123" the filter cell shows only "23" because the dropdown is showing the word "Contains:" and it obscures the "1" in "123".

Is there a way to collapse the dropdown filters lettering when the filter cell has a value in it?  E.g. - Initially, it shows the word Contains... but as soon as the filter cell has a value, I'd like the word "Contains" to collapse or be removed.  Then if the user removes any values from the filter cell - the filter Dropdown selector reappears.

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 10 May 2024
0 answers
2 views

Hello,

We have a RadTreeView control inside a ToolWindow (with Dock = Fill) in a RadDock control. The nodes are added to the tree programmatically and AllowArbitraryItemHeight=false and TreeViewElement.AutoSizeItems=true. There is no ItemHeight set at all. We are sporadically getting an issue where the RadTreeView won’t let the user scroll to the bottom of the tree. We can’t consistently reproduce this error however. Is there any advice you can give how to try figure out what is going on?

Thanks,

Hayley

Hayley
Top achievements
Rank 1
Iron
 updated question on 10 May 2024
0 answers
4 views

Hello,

I have a RadGridView databound to a DataView with AddNewBoundRowBeforeEdit = true. Multiple columns in the DataView.Table have AllowDbNull set to false. I'm getting exceptions however when i try and add a new row without specifying a value for the columns that dont accept Db null, and even if i press Escape to cancel the new row the grid seems to freeze and i can no longer try add new rows. 

I've attached a sample application and a screenshot of the error.  The steps to reproduce the exception in the test app are:

1. Click on any column in add new record row
2. Click on an existing row in the grid. Exception will appear in message box. Press OK
3.. Try and click on add new record row again. Either nothing will happen or another exception will appear.

The exception will also appear if you click in the add new record row, then press Esc key

Thanks,

Hayley

 

Hayley
Top achievements
Rank 1
Iron
 asked on 10 May 2024
0 answers
4 views
I need border 3d border style of rad grid view.
Like attached below image.
Shubham
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 10 May 2024
3 answers
22 views

Hello,

I have two problems with selfrefencing hierarchy in GridView. First, my test application is related to this thread, just for info and context, but I am asking question in new thread, as it was recommended to me, and I think this is separate problem not related to original design question.

https://www.telerik.com/forums/gridview---design-of-parameter-editor-with-subitems

I have created more realistic test application (TelerikTestReal in attached project) with new data structures for self referencing hierarchy binding. I can see desired output after program startup. When I add new main item programatically, GridView shows it properly. But, when I change test type of main item and subitems are changed, deleted child rows disappear, but newly added are not shown, as you can see on animation below. After some debugging, I see child rows are added to BindingList bound to DataSource of GridView, I also see ListChanged event of BindingList is properly fired, but GridView doesn't show new child rows. I can show them by calling ResetBindings() method of BindingList. What can be the problem?

The second problem is that I cannot close program after call to ResetBindings() method, I can click close button manytimes, but nothing happens.

Dinko | Tech Support Engineer
Telerik team
 answered on 09 May 2024
1 answer
5 views

Hello,

I'm using a RadDropDownList control and i've noticed when handling the PopupOpening event, the sender object being passed is a RadDropDownListElement object and not the RadDropDownList control itself. Is there a way to get the RadDropDownList object from the RadDropDownListElement object? I need to get the parent control of the actual RadDropDownList control and i can't do this from the RadDropDownListElement object currently. 

I have the same problem with the RadColorBox and its ValueChanged event handler returning a RadColorBoxElement object instead of RadColorBox.

Let me know if you need more information!

Thanks,

Hayley

Dinko | Tech Support Engineer
Telerik team
 answered on 09 May 2024
1 answer
7 views
When exporting data from a RadGridView to a .csv file using the ExportToCSV class, I'd like the resulting .csv file to be sorted to match what the users have on their grid. For example, if a user were to drag a column on the grid to the far left, I'd expect that column to appear first in the .csv file after exporting. Is there a simple way to accomplish this?

Thanks in advance!
Dinko | Tech Support Engineer
Telerik team
 answered on 03 May 2024
0 answers
5 views

My current version is 2024.1.312.40

I tried to load a layout (xml file) saved in a previous version RadGridView and get an error that I cannot intercept. In which way I can either catch this exception or disable their occurrence for the user?

The exception occurs in the method: rdgvMain.LoadLayout(reader) and try is not working;

strLayout, reader, stream are not empty

 

 try
            {
                using (var stream = new StringReader(strLayout))
                {
                    var reader = XmlReader.Create(stream);

                    rdgvMain.LoadLayout();

                    stream.Close();
                    reader.Close();
                }
            }
            catch (Exception ex)
            {
                AddInfo(ex.Message);
            }

 

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.GridRowBehavior.OnMouseMove(MouseEventArgs e)
   at Telerik.WinControls.UI.BaseGridBehavior.OnMouseMove(MouseEventArgs e)
   at Telerik.WinControls.UI.RadGridView.OnMouseMove(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseMove(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 Telerik.WinControls.UI.RadGridView.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)

 

 

Thanks,

Serhii
Top achievements
Rank 1
 updated question on 03 May 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
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?