Completed
Last Updated: 06 Jun 2022 22:29 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