#102614
TurricanDE
Participant

Hello Yavor,

Yes I’ve seen this before, I already set the string conditions like you suggested.

But when I collect the filter string in the Event then the string looks like

“CONTAINS abc” or “DOES_NOT_CONTAIN abc” and so on…

But what has the filter string exactly looks like for every condition if we set this collected filter string programmatically somewhere else?

It works when I set “contains abc”.

But not if I set “does_not_contain abc” etc. (I user lower case)

The hamburger menu is gone and the grid didn’t respond anymore.

I use the Grid Filtering.Filter property like this:

List<IEnumerable<string>> Filter = new List<IEnumerable<string>>()
{
new List<string> { “FirstName”, “contains Andrew” } // => works

};

or

List<IEnumerable<string>> Filter = new List<IEnumerable<string>>()
{
new List<string> { “FirstName”, “does_not_contain Andrew” } // => doesn’t work
};

MyGrid.Filtering.Filter = filter

I thought the conditions have to be like as in the documentation:

https://www.htmlelements.com/docs/grid-filtering-sorting/

I tried this:

List<IEnumerable<string>> Filter = new List<IEnumerable<string>>()
{
new List<string> { “FirstName”, “startswith Paul” }

// => the filter is working, but the filter column panel shows me “equal” instead of “starts with” for   the first condition
};

 

 

 

  • This reply was modified 2 years, 10 months ago by TurricanDE.
  • This reply was modified 2 years, 10 months ago by TurricanDE.