Completed
Last Updated: 06 Jun 2022 09:30 by ADMIN
Release R2 2022 (LIB 2022.2.606)
Dickson
Created on: 17 Feb 2022 08:35
Category: FilterView
Type: Bug Report
1
RadFilterView: Long delay when initializing a category with range 10000-10000

Use the following code snippet which result is illustrated in the gif file:

        public RadForm1()
        {
            InitializeComponent();

            DataTable dt = new DataTable();
            dt.Columns.Add("Id", typeof(int));
            dt.Columns.Add("Column1", typeof(decimal));
            dt.Columns.Add("Column2", typeof(string));
            dt.Columns.Add("Column3", typeof(string));
            for (int i = 0; i < 10; i++)
            {
                //No delay
                //dt.Rows.Add(i, 100, "LongstringAAAAAA" + i, "VeryVeryLongstringAAAAAAAABBBBBBBBVeryVeryLongstringAAAAAAAABBBBBBBBE" + i);

                //Long delay
                dt.Rows.Add(i, 10000, "LongstringAAAAAA" + i, "VeryVeryLongstringAAAAAAAABBBBBBBBVeryVeryLongstringAAAAAAAABBBBBBBBE" + i);
            }

            this.radFilterView1.DataSource = dt;
        }

Workaround:

        private void radFilterView1_CategoryCreating(object sender, Telerik.WinControls.UI.FilterView.FilterViewCategoryCreatingEventArgs e)
        {
            FilterViewNumericCategoryElement numericCategory = e.Category as FilterViewNumericCategoryElement;
            if (numericCategory!=null)
            {
                numericCategory.DisplayMode = FilterViewNumericCategoryMode.SpinEditors;
            }
        }

Attached Files:
0 comments