In Development
Last Updated: 20 Jan 2025 16:18 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)

System.ArgumentException: 'An item with the same key has already been added.' when the data source contains DateTime with the same hour, minute, and seconds part (only milliseconds are different):

 

In Development
Last Updated: 20 Jan 2025 15:19 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
In Development
Last Updated: 15 Jan 2025 14:44 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Calling the BestFitColumns() method after setting the DataSource will not resize the columns. The method logic is called before the internal measure of the control is finished. 
In Development
Last Updated: 15 Jan 2025 14:37 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Created by: Eddie
Comments: 1
Category: Spreadsheet
Type: Bug Report
0

1. Select two or more cells.

2. Click on the "All charts" button

3. The charts are not displayed and the following error occurs:

In Development
Last Updated: 15 Jan 2025 08:58 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
When the navigation view is collapsed, and the client deletes a page. 
In Development
Last Updated: 14 Jan 2025 16:01 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)

Auto-complete items overlap in the VisualStudio2022 theme:

In Development
Last Updated: 14 Jan 2025 12:34 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
In Development
Last Updated: 08 Jan 2025 18:43 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Visual selection highlight remains on a cell when clicking and holding on one cell, then releasing on a different cell.
In Development
Last Updated: 08 Jan 2025 18:26 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
In Development
Last Updated: 08 Jan 2025 16:31 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
In Development
Last Updated: 06 Jan 2025 16:57 by ADMIN
Created by: Alessandro
Comments: 0
Category: GridView
Type: Feature Request
1

With releasing .NET 6, there are TimeOnly and DateOnly types which would be more appropriate for managing such values:

https://devblogs.microsoft.com/dotnet/date-time-and-time-zone-enhancements-in-net-6/

It would be good to add support for these types in GridViewDateTimeView.

Currently, the following code gives an exception when entering edit mode: 

        public RadForm1()
        {
            InitializeComponent();
            DataTable dt = new DataTable();
            dt.Columns.Add("DateOnly", typeof(DateOnly));
            dt.Rows.Add(new DateOnly(2022,3,3));

            this.radGridView1.AutoGenerateColumns = false;
            GridViewDateTimeColumn dateColumn = new GridViewDateTimeColumn();
            dateColumn.FieldName = "DateOnly";
            this.radGridView1.Columns.Add(dateColumn);
            this.radGridView1.DataSource = dt;
            this.radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
        }

 

 

Workaround: you can use the following custom TypeConverter

        public RadForm1()
        {
            InitializeComponent();
            DataTable dt = new DataTable();
            dt.Columns.Add("DateOnly", typeof(DateOnly));
            dt.Rows.Add(new DateOnly(2022,3,3));

            this.radGridView1.AutoGenerateColumns = false;
            GridViewDateTimeColumn dateColumn = new GridViewDateTimeColumn();
            dateColumn.DataType = typeof(DateTime);
            dateColumn.FieldName = "DateOnly";
            dateColumn.Format = DateTimePickerFormat.Custom;
            dateColumn.CustomFormat = "dd/MM/yyyy";
            dateColumn.FormatString = "{0:dd/MM/yyyy}";
            dateColumn.DataTypeConverter = new DateOnlyConverter();
            this.radGridView1.Columns.Add(dateColumn);
            this.radGridView1.DataSource = dt;
            this.radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
        }


        public class DateOnlyConverter : TypeConverter
        {
            public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
            { 
                return destinationType == typeof(DateTime);
            }
            public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
            { 
                if (value is DateOnly && destinationType == typeof(DateTime))
                {
                    DateOnly date = (DateOnly)value;
                    return new DateTime(date.Year, date.Month, date.Day);
                }
                
                return base.ConvertTo(context, culture, value, destinationType);
            }
            public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
            { 
                return sourceType == typeof(DateTime) ;
            }
            public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
            { 
                if (value is DateTime)
                {
                    DateTime date = (DateTime)value;
                    return new DateOnly(date.Year, date.Month, date.Day);
                }
                
                return base.ConvertFrom(context, culture, value);
            }
        }

 

    
In Development
Last Updated: 03 Jan 2025 10:08 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)
Clicking on a key close the suggest popup of the RadDropDownList control
In Development
Last Updated: 03 Jan 2025 09:44 by ADMIN
Scheduled for 2025.1.2xxx (2025 Q1)

When Windows 11 Dark themes are applied the Legend items panel back color is not changed. This behavior is observed in the following themes:

  • Windows11Compact11Dark
  • Windows11Dark
  • Windows11HighContrast