Custom column filter wont show in ColumnMenu

2 posts, 0 answers
  1. Stefan
    Stefan avatar
    1 posts
    Member since:
    Jan 2016

    Posted 18 Jul Link to this post

    Hi there,

    Were using a custom filter for statuses.

    Its working fine when were only using this in the grid properties:

     

    1.//Column code in grid
    2. 
    3.columns.Bound(la => la.StatusName)
    4..Filterable(s => s.Multi(true).DataSource(ds => ds.Read(r => r.Action("GetStatuses", "Status").Data("{ field: 'StatusName' }"))))
    5. 
    6.//Grid propert
    7..Filterable(ftb => ftb.Mode(GridFilterMode.Menu))

     

    but when i add the .ColumnMenu() property to the grid the filtering on the status column doesnt show at all. I need the show/hide column functions in the columnmenu but cant sacrifice the custom status filter.

     

    The serverside code for the datasource looks like this:

     

    01.public ActionResult GetStatuses(string field)
    02.{
    03.    var statuses = Context.GetAll<Status>(false);
    04. 
    05.    var viewModels = (from s in statuses
    06.                      select new StatusVm() { StatusName = s.Key })
    07.        .ToList();
    08. 
    09.    return Json(viewModels, JsonRequestBehavior.AllowGet);
    10.}

     

    Am i missing something obvious here?

     

    Thankful for any input.

     

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1796 posts

    Posted 20 Jul Link to this post

    Hello Stefan,

    Could you please open a regular support ticket and attach a sample, runnable project with your exact scenario. With the initial tests it seems that there is indeed a problem when the column menu is enabled, but we will need to investigate this further. 



    Best Regards,
    Konstantin Dikov
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top