Approved
Last Updated: 12 Jan 2017 09:17 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 15 Sep 2015 13:42
Category: GridView
Type: Bug Report
2
FIX. RadGridView - CompositeFilterForm does not display all filter descriptors when a CompositeFilter with more than two filters is applied via Excel-like filtering
To reproduce: use the following code snippet and have a look at the attached gif file.
Steps:
1.Populate RadGridView with data and enable Excel-like filtering.
2.Click on a column filter icon and type in the Search textbox so more than two results appear. Then, click OK
2.The grid returns correct result.
3. Click on the previous column filter icon and navigate to Available Filters -> Contains
4. Evaluate the initial pop up dialog. You will notice that the 3rd filter descriptor is not displayed in the form.
5. Then, click OK
6. A message that says: "The composite filter descriptor is not valid".
7. Change the latter condition to "No filter" and click OK
8. The grid returns correct result.

CompositeFilterForm should be improved on a way to display all applied filters,not only two of them.

public Form1()
{
    InitializeComponent();

    DataTable dt = new DataTable();
    dt.Columns.Add("Group", typeof(string));
    dt.Columns.Add("Description", typeof(string));
    for (int i = 0; i < 20; i++)
    {
        dt.Rows.Add(GenerateWord(3), "Description");
    }
    this.radGridView1.DataSource = dt;
    this.radGridView1.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
    this.radGridView1.EnableFiltering = true;
    this.radGridView1.ShowHeaderCellButtons = true;
    this.radGridView1.ShowFilteringRow = false;
    this.radGridView1.CreateCompositeFilterDialog += radGridView1_CreateCompositeFilterDialog;
}

string word = null;
int cons;
int vow;
//counter
int i = 0;
bool isword = false;
Random rand = new Random();
//set a new string array of consonants
string[] consonant = new string[] { "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p",
    "q", "r", "s", "t", "v", "w", "x", "y", "z" };
//set a new string array of vowels
string[] vowel = new string[] { "a", "e", "i", "o", "u" };

string GenerateWord(int length)
{
    if (length < 1) // do not allow words of zero length
        throw new ArgumentException("Length must be greater than 0");

    string word = string.Empty;

    if (rand.Next() % 2 == 0) // randomly choose a vowel or consonant to start the word
        word += consonant[rand.Next(0, 20)];
    else
        word += vowel[rand.Next(0, 4)];

    for (int i = 1; i < length; i += 2) // the counter starts at 1 to account for the initial letter
    { // and increments by two since we append two characters per pass
        string c = consonant[rand.Next(0, 20)];
        string v = vowel[rand.Next(0, 4)];

        if (c == "q") // append qu if the random consonant is a q
            word += "qu";
        else // otherwise just append a random consant and vowel
            word += c + v;
    }

    // the word may be short a letter because of the way the for loop above is constructed
    if (word.Length < length) // we'll just append a random consonant if that's the case
        word += consonant[rand.Next(0, 20)];

    return word;
}

Workaround: By using the CreateCompositeFilterDialog event you can replace the default CompositeFilterForm with your custom one where you can  load all available filter descriptors.
Attached Files:
8 comments
ADMIN
Stefan
Posted on: 10 May 2016 10:48
Hi Ronnie,

For the time being we do not have a time frame for this functionality. It would require building a whole new component to take care of such composite filters, so it is not a trivial task. Once we have it planned, we will change the item status accordingly.

Ronnie
Posted on: 10 May 2016 10:21
Has a time frame been agreed for this issue?
thanks
Ronnie
ADMIN
Stefan
Posted on: 20 Jan 2016 16:43
Hi Ronnie,

currently, this is not in our TODO list and the demand for it is not very high, so we are unable to engage with a time frame for it.
Ronnie
Posted on: 20 Jan 2016 13:49
Hi
What's the current situation with this issue? Has it made the next planning review?

many thanks
Ronnie
ADMIN
Stefan
Posted on: 21 Dec 2015 06:40
Hi Roonie,

unfortunately, this case didn’t make it in our planning due to some items with higher priority. If you follow the item, once it gets in the plan, you will receive an email notification.

-Stefan
Ronnie
Posted on: 18 Dec 2015 13:57
Hi Stefan
Has a time frame been agreed yet for the resolution of this case?

many thanks
Ronnie
ADMIN
Stefan
Posted on: 29 Oct 2015 06:48
Hi Ronnie,

Thank you for your input on the matter.

For the time being, we do not have a time frame for this case resolution. Make sure to cast your vote for it by hitting the Like button as this helps us keep track of the most demanded items.

Ronnie
Posted on: 28 Oct 2015 14:53
A similar issue occurs when there are three or more results from the Search and navigate to Available Filters -> Custom. Click on OK and the message "The composite filter descriptor is not valid" is displayed.

What is the timescale for this issue to be resolved without using the workaround?