Kendo Grid Datasource filter 'OR'

3 posts, 0 answers
  1. Arun
    Arun avatar
    4 posts
    Member since:
    Jul 2012

    Posted 27 Jul 2012 Link to this post

    Hi,
    how can i create filter on multiple columns with 'OR ' as the logical operator?
    assume i have 5 columns (string data type)
    i want to create a filter like this
    filter=  col1 contains ('test') OR col2 contains ('test') OR col3 contains ('test') OR col4 contains ('test')
    OR col5 contains ('test').
    
    thanks,
    Arun
    
  2. Arun
    Arun avatar
    4 posts
    Member since:
    Jul 2012

    Posted 02 Aug 2012 Link to this post

    bump...

    anyone?
  3. Kendo UI is VS 2017 Ready
  4. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 18 Jun 2014 in reply to Arun Link to this post

     A couple years late and you probably found the answer, but your post popped up in my search
       
     myGrid.data("kendoGrid").dataSource.filter(
               {
                   logic: "or",
                   filters: [
                           { field: "addrId", operator: "startswith", value: '1' },
                           { field: "addr1", operator: "contains", value: '1' }
                   ]
               }
               );
Back to Top