This question is locked. New answers and comments are not allowed.
I've got the following basic grid definition with client template for one of the columns
I need the template to be different based on a column value in the row. Let's say it'd be the previous, AsOfDateTime column. If a date is greater then 1/1/2011, I'll have one action link, otherwise, I'll have another action link. I can't figure out the syntax to make this work.
Any help?
Thanks in advance!
Alex
@(Html.Telerik().Grid<WireInstructionWorkflowPoco>() .Name("Grid") .Columns(columns => { columns.Bound(i => i.InstructionApprovalState).Title("Status").Filterable(false); columns.Bound(i => i.EntityName).Title("From"); columns.Bound(i => i.InvestmentName).Title("To"); columns.Bound(i => i.PositionName).Title("Position"); columns.Bound(i => i.AsOfDateTime).Format("{0:MM/dd/yyyy}").Width(120).Title("Due Date"); columns.Bound(i => i.InstructionsGUID).ClientTemplate( @Html.ActionLink("Approve", "ApproveWireInstruction", new { instructionID = "<#=InstructionsGUID#>" }).ToHtmlString() ).Title("Action").Filterable(false); }) .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "WireInstructionsPipeline")) .Groupable() .Sortable() .Pageable() .Filterable()Any help?
Thanks in advance!
Alex