HI,
 
Ive got the following kendo Grid .  ( see code below). I used a client template for the swtich statement. However I also need to do a check ( if statement). How can I implement the if statement  before the binding of p.HostedTypeString so it has already performed there check.
 
@using Kendo.Mvc.UI
@using OneXS.FrontOffice.ETS.Portal.Models.Types
@using OneXS.Orion.Framework
@using OneXS.Orion.Framework.MVC.Authorisation
@{
ViewBag.Title = GlobalResources.Partitions;
}




@(Html.Kendo().Grid()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.PlatformString);
columns.Bound(p => p.ServiceProvider);
columns.Bound(p => p.PartitionName).ClientTemplate("#=PartitionName#");
 
 
// This first needs to be checked ( if hostedTypeString == Compleet OR HostedTypeString ==DeanOneHosted) &&  (s.Finish == null || s.Finish > systemdate.today) // BUT HOW ???? !!!

                 columns.Bound(p => p.HostedTypeString).ClientTemplate("# switch (HostedTypeString) {" +
"case 'Compleet': # Compleet " + "# break;" +
"case 'DeanOneHosted': # onepro
" + "# break;" +
"default: # #=HostedTypeString# #" +
"}#");