joeharrison714 / MVCGrid.Net

http://mvcgrid.net
MIT License
75 stars 56 forks source link

Field List #171

Open beasty1711 opened 6 years ago

beasty1711 commented 6 years ago

Is there any way to hide a column from the field list in the toolbar? My tool-bar is exactly as per the sample.

I have a grid column that contains some action buttons. I want this to be visible and not listed in the Fields list.

My column is defined as: cols.Add().WithColumnName("EditLink") .WithSorting(false) .WithHeaderText("") .WithHtmlEncoding(false) .WithValueExpression((p, c) => c.UrlHelper.Action("Edit", "Controls", new { id = p.control_id })) .WithValueTemplate("<a href='{Value}'>Edit</a>");

I've also tried including this with no luck:

.WithVisibility(true, false)

Is this possible?