Approved
Last Updated: 18 Apr 2019 06:50 by ADMIN
Cedric
Created on: 18 Apr 2019 06:33
Category: UI for ASP.NET MVC
Type: Bug Report
0
Using fluent methods of grid column throws an exception

Passing a dynamic object to a template column builder throws an exception:

c.Template(m => { })
.ClientTemplate("<input type='checkbox' value='#= Id #' />")
.Visible(ViewBag.Can.Edit);

Using an explicit cast doesn't throw the error:

c.Template(m => { })
.ClientTemplate("<input type='checkbox' value='#= Id #' />")
.Visible((bool)ViewBag.Can.Edit);

0 comments