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

Custom column filter wont show in ColumnMenu

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 18 Jul 2016, 10:11 AM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 20 Jul 2016, 09:09 AM
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
Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or