Skip to content

Instantly share code, notes, and snippets.

@QiMata
Last active August 19, 2018 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QiMata/8d22ed102ea119664d7aec6e1b913f45 to your computer and use it in GitHub Desktop.
Save QiMata/8d22ed102ea119664d7aec6e1b913f45 to your computer and use it in GitHub Desktop.
A serializable object for the Kendo Grid Filter
public class CompositeFilterDescriptor
{
[JsonProperty("logic")]
public string Logic { get; set; }
[JsonProperty("filters")]
public ICollection<CompositeFilterDescriptor> Filters { get; set; }
[JsonProperty("field")]
public string Field { get; set; }
[JsonProperty("operator")]
public string Operator { get; set; }
[JsonProperty("value")]
public object Value { get; set; }
[JsonProperty("ignoreCase")]
public bool? IgnoreCase { get; set; }
}
public class Page
{
public int Skip { get; set; }
public int Take { get; set; }
}
public class RequestDto
{
public CompositeFilterDescriptor Filters { get; set; }
public Page Page { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment