This is a migrated thread and some comments may be shown as answers.

Excel-like Filtering And DropDown filter options

2 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Philippe GRACA
Top achievements
Rank 1
Philippe GRACA asked on 29 Jan 2018, 09:04 PM

Hello

How can I remove some options from the two dropdowns ?

Basically, I only want to keep the "contains" option.

I haven't found how to do it with a grid in Excel Like Filtering mode.

 

Thank you 
philippe

2 Answers, 1 is accepted

Sort by
0
Philippe GRACA
Top achievements
Rank 1
answered on 29 Jan 2018, 09:30 PM

Hello 
I found an ugly but working solution.

In this case, I'm changing the default filter options to "Contains"

 

function HeaderMenuShowing(sender, eventArgs)
{
    $('.RadComboBox').each(function (e) {
 
        if (this.id.indexOf('First') > 0 || this.id.indexOf('Second') > 0) {
            var combo = $find(this.id);
            combo.trackChanges();
            var itm = combo1.findItemByText("Contains").select();
            combo.commitChanges();
        }
    })
}
0
Philippe GRACA
Top achievements
Rank 1
answered on 29 Jan 2018, 09:32 PM

oops, typo error

 

function HeaderMenuShowing(sender, eventArgs)
{
    $('.RadComboBox').each(function (e) {
        if (this.id.indexOf('First') > 0 || this.id.indexOf('Second') > 0) {
            var combo = $find(this.id);
            combo.trackChanges();
            var itm = combo.findItemByText("Contains").select();
            combo.commitChanges();
        }
    })
}
Tags
Grid
Asked by
Philippe GRACA
Top achievements
Rank 1
Answers by
Philippe GRACA
Top achievements
Rank 1
Share this question
or