Completed
Last Updated: 14 Oct 2021 16:30 by ADMIN
Release R3 2021 SP1
Stephen
Created on: 27 Sep 2021 12:40
Category: FilterView
Type: Bug Report
0
RadFilterView: Filtering exception if all cells in a decimal column have value of 0

To reproduce:

this.radGridView1.EnableFiltering = true;
this.radGridView1.BestFitColumns();

DataTable dt = new DataTable();    
dt.Columns.Add(new DataColumn("Column 1", Type.GetType("System.Decimal")));
dt.Columns.Add(new DataColumn("Column 2", Type.GetType("System.Decimal")));
dt.Columns.Add(new DataColumn("Column 3", Type.GetType("System.String")));

for (int i = 0; i < 20; i++)
{
    dt.Rows.Add(0, i, "Text " + i);
}

this.radGridView1.DataSource = dt;
this.radFilterView1.AssociatedControl = this.radGridView1;

Run the project and filter the first column ("Column 1") by dragging radFilterViews radTrackBar.

You will get the following exception: "System.ArgumentOutOfRangeException: 'Value of '1' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'."

 

 

0 comments