Excel-like Filtering And DropDown filter options

3 posts, 0 answers
  1. Philippe GRACA
    Philippe GRACA avatar
    35 posts
    Member since:
    Nov 2003

    Posted 29 Jan 2018 Link to this post

    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. Philippe GRACA
    Philippe GRACA avatar
    35 posts
    Member since:
    Nov 2003

    Posted 29 Jan 2018 in reply to Philippe GRACA Link to this post

    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();
            }
        })
    }
  3. Philippe GRACA
    Philippe GRACA avatar
    35 posts
    Member since:
    Nov 2003

    Posted 29 Jan 2018 in reply to Philippe GRACA Link to this post

    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();
            }
        })
    }
Back to Top