RadzenDropDownDataGridColumn Template

Hi,

I need to put some logic into the Visible property of RadzenDropDownDataGridColumn Template.

This does NOT work:

Visible=@(data.InactiveDate.HasValue)

But this DOES work:

Visible=@(data.InactiveDate != null)

Just curious why.

HasValue works in RadzenDataGridColumn Template. My guess is because I specified TItem, so it knows that InactiveDate is a nullable DateTime property.

If that's the case, is there a way to specify TItem on the DropDown, so I can use the same C# syntax?

Thanks,
Mike

The TItem in this case is dynamic - most probably this is what’s causing the problem. Maybe if you try to cast it to the actual type you can use similar expressions.