FilterMenuInit event not firing

2 posts, 0 answers
  1. PrimePay
    PrimePay avatar
    25 posts
    Member since:
    Feb 2015

    Posted 17 Apr 2015 Link to this post


    I have a grid with the filterMenuInit event set up to fire a custom function. However, the event is not firing when I open the filter menu. Here is some of the code for the grid:

            .Columns(columns =>
                columns.Bound(m => m.Number)
                    .Filterable(ftb => ftb.Cell(cell => cell.ShowOperators(true).Template("NumberFilter")));
                columns.Bound(m => m.FirstName)
                    .Title("First Name")
                    .Filterable(ftb => ftb.Cell(cell => cell.Delay(@serverSideDelay).ShowOperators(true)));
                columns.Bound(m => m.LastName)
                    .Title("Last Name")
                    .Filterable(ftb => ftb.Cell(cell => cell.Delay(@serverSideDelay).ShowOperators(true));
            .Pageable(pageable => pageable
            .ColumnMenu(menu =>
            .Sortable(s => s
            .Events(e => e.FilterMenuInit("hideFilter"))
            .Filterable(ftb => ftb.Mode(GridFilterMode.Row))
            .DataSource(dataSource => dataSource
                .Model(model => model.Id(m => m.ID))
                .Sort(s =>
                .Read(read => read.Action("ReadAction"))
                .Events(events => events.Error("onKendoDataSourceError").RequestStart("checkFilter"))
            .Events(e => e.Change("selectObject").DataBound("checkFilter"))


    I'm using version 2014.3.1316. Can you please help with this? Thanks.

  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2311 posts

    Posted 17 Apr 2015 Link to this post

    Hello PrimePay,

    The reason for this behavior is that the column menu is used in the current Grid. In this case you should bind to the columnMenuInit event instead.

    Dimiter Madjarov

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top