Hi!
Isn't this suposed to work?
This acts like 'AND' and not an 'OR'.
Best Regards, Fernando Moreira
Isn't this suposed to work?
protected void uxGridSubscription_OnItemCommand(object sender, GridCommandEventArgs e){ if (e.CommandName == RadGrid.FilterCommandName) { var filterPair = (Pair) e.CommandArgument; switch (filterPair.Second.ToString()) { case "Name": { var filterValue = uxGridSubscription.MasterTableView.GetColumnSafe("Name").CurrentFilterValue; uxGridSubscription.MasterTableView.FilterExpression = "(([Name] LIKE \'%" + filterValue + "%\') OR ([Obs] LIKE \'%" + filterValue + "%\'))"; var column2 = uxGridSubscription.MasterTableView.GetColumnSafe("Obs"); column2.CurrentFilterFunction = GridKnownFunction.Contains; column2.CurrentFilterValue = filterValue; uxGridSubscription.MasterTableView.Rebind(); break; }
} }}This acts like 'AND' and not an 'OR'.
Best Regards, Fernando Moreira