This is a migrated thread and some comments may be shown as answers.

Conditional Hyperlink Column in Grid with Ajax databinding

0 Answers 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amit
Top achievements
Rank 1
Amit asked on 03 May 2011, 10:52 PM
In one of the Telerik Grid, I have a column like this.

columns.Template(
    @<text>
            @(item.BoolField ? "Open" : "Closed")
    </text>
).Title("Status");

It works fine when used with .DataBinding(databinding => databinding.Server(). How to do the same when using the Ajax binding using .DataBinding(databinding => databinding.Ajax(). Other than adding a display value in the view model (to have Open/Close), is there a way to deal with this in the view itself?

columns.Bound(m => m.MerchantInfo.BoolField)
    .ClientTemplate("<#= BoolField #>")
    .Title("Status");
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Share this question
or