All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
columns.Template( @<text> @item.GrantStartDate-@item.GrantEndDate </text> ).Title("START-END DATE");
Thanks
.Template(@<text>@item.GrantStartDate.Value.ToString(
"yyyy-MM-dd"
)-@item.GrantEndDate.Value.ToString(
)</text>);
@item.GrantStartDate.HasValue? item.GrantStartDate.Value.ToString("yyyy-MM-dd"): string.Empty()
Yes, you could easily include the check about the NULL value. E.g.
.Template(@<text>
@(item.GrantStartDate.HasValue ? item.GrantStartDate.Value.ToString(
) : String.Empty) -
@(item.GrantEndDate.HasValue ? item.GrantEndDate.Value.ToString(
) : String.Empty)
</text>);