hello
can u please tell me i can populate grid columns only with certain conditions
something like this
columns.Bound(c => c.ID).Title(ViewBag.SearchBy+" id").HtmlAttributes(new { @class = "search_by_id" });
columns.Bound(c => c.Clicks);
if(1>0)
{
columns.Bound(c => c.Conversions).Title("Conversions");
columns.Bound(c => c.ConversionRate).Title("Conversion rate").Format("{0:p1}"); ;
}
thank u
can u please tell me i can populate grid columns only with certain conditions
something like this
columns.Bound(c => c.ID).Title(ViewBag.SearchBy+" id").HtmlAttributes(new { @class = "search_by_id" });
columns.Bound(c => c.Clicks);
if(1>0)
{
columns.Bound(c => c.Conversions).Title("Conversions");
columns.Bound(c => c.ConversionRate).Title("Conversion rate").Format("{0:p1}"); ;
}
thank u