Kendo UI Grid Filter Row

4 posts, 0 answers
  1. Jeel
    Jeel avatar
    2 posts
    Member since:
    Oct 2015

    Posted 31 Mar 2016 Link to this post

    I am having trouble with the filter row example from your demos for the kendo ui grid. My code looks similar to what you guys are showing but I get an error when I run my site. The code I am using is shown below:

     

    However, when I run this I get an error saying "Cannot convert lambda expression to type "bool" because it is not a delegate type. This happens on line

    columns.Bound(p => p.Name).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));

    What am I missing?

     

    @(Html.Kendo().Grid<MyViewModel>()
        .Name("MyGrid")
        .DataSource(dataSource => dataSource
            .Ajax()
            .Read(read =>
            {
                read.Action("GetResults", "MyController");
     
            })
            .PageSize(10)
            .ServerOperation(true)
            )
            .Columns(columns =>
            {
                columns.Bound(p => p.Name).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
                columns.Command(command => command.Custom("Report").Click("showDetails"));
            })
            .Filterable(ftb => ftb.Mode(GridFilterMode.Row))
            .Sortable()
            .Pageable()
            .Selectable(s => s.Mode(GridSelectionMode.Single))
     
    )

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 04 Apr 2016 Link to this post

    Hello Jeel,

     

    I am afraid that I am not able to replicate such problem. I made a project based on the provided code and it seems that it works fine. 

     

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Jeel
    Jeel avatar
    2 posts
    Member since:
    Oct 2015

    Posted 04 Apr 2016 in reply to Boyan Dimitrov Link to this post

    I figured out the problem. I was using an old version which didn't support this feature yet. But the problem I am now having is that after I filter, I cannot select a row. My custom Command button stopped working.. Any ideas? how do we select a single row after filtering..

    On my grid I have

    .Selectable(s => s.Mode(GridSelectionMode.Single))

     

    But this isn't working. And I am also getting another error which says

    Object doesn't support property or method 'delayedClick'

  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 06 Apr 2016 Link to this post

    Hello Jeel,

    Could you please check whether you are using old version of the Kendo UI scripts and this is the reason for having this error? If you face this problem after updating the scripts please try to modify the project I attached in my last response and replicate the error you are facing. In order to attach a project a support ticket should be opened since in the forum threads only images can be attached. 

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top