This is a migrated thread and some comments may be shown as answers.

KendoGrid MVC Filtering Problem

1 Answer 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
INFOLINE BILGI TEKNOLOJILERI
Top achievements
Rank 1
INFOLINE BILGI TEKNOLOJILERI asked on 03 Aug 2017, 08:50 AM

Hey

I have some problem with Kendo.Grid()

I wanna add filter for some column value then is NULL.

Code here:

x.Ajax().Read(r => r.Action("DataSource", "SRV_Service", new { area = "SRV" }))
.Filter(f => f.Add(s => s.PID).IsEqualTo((Guid?)null))

Datasource when i use null value filter.

https://resimyukle.xyz/resim/KU48JA

 

MVC Enums for filter operators

    public enum FilterOperator
    {
        IsLessThan = 0,
        IsLessThanOrEqualTo = 1,
        IsEqualTo = 2,
        IsNotEqualTo = 3,
        IsGreaterThanOrEqualTo = 4,
        IsGreaterThan = 5,
        StartsWith = 6,
        EndsWith = 7,
        Contains = 8,
        IsContainedIn = 9,
        DoesNotContain = 10
    }

 

And your "Operator used in FilterDescriptor" keys has IsNull operator
http://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc/FilterOperator

How can i do append IsNull operator on Kendo.Mvc.FilterDescriptor ?

Please help me

 

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 03 Aug 2017, 10:18 AM
Hello,

Please note that this is the UI for WPF forum. I would ask you to post your question in the Kendo UI forums.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
INFOLINE BILGI TEKNOLOJILERI
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or