Hi Jeremy,
Thank you for looking into this issue.
I would be interested to know if you are calling other methods
along with the Visible method on the Grid columns. Right now, a
sample of my grid looks like this:
@Html.Grid(Model).Sort(ViewBag.sort as GridSortOptions).Columns(column
=> {
column.For(issue => Html.CheckBox("IssueSelected", false, new
{ id = "IssueSelected",
value=issue.ID})).Named("Select").SortColumnName("
").Visible(testFn((int)IssueEnum.ID, selCol));
column.For(issue => Html.ActionLink(" ", "Edit", new { id =
issue.ID, areas = "Issues", controller = "Main"}, new
{ @id="editBtn"})).Named("Edit").SortColumnName(" ");
column.For(issue => Html.ActionLink(issue.ID.ToString(), "Edit",
new { id = issue.ID, areas = "Issues", controller =
"Main" })).Named("ID").Sortable(true).Visible(testFn("9", selCol));
column.For(issue =>
issue.issueSummary).Named("Summary").Sortable(true);
I'm going to try and make it just the barebones of the column
definitions and see if that is the issue. If you don't mind, would
you copy your grid code please?
Thank you,
On Aug 25, 2:55 pm, Jeremy Skinner <
jer...@jeremyskinner.co.uk> wrote:
> Hi
>
> I'm not able to reproduce this - I tried running your code and it worked
> correctly. The column was hidden provided that the value for colId was
> present in the string array. If you're still having problems then feel free
> to put together a complete working sample project that reproduces the
> problem and then email it to me, and I'll investigate further.
>
> Jeremy
>
> > MvcContrib project. Or go tohttp://
mvccontrib.org
> >
http://groups.google.com/group/mvccontrib-discuss?hl=en- Hide quoted text -
>
> - Show quoted text -