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

Client Template for anchor

1 Answer 52 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.
scorp
Top achievements
Rank 1
scorp asked on 22 Dec 2011, 10:51 PM
Model is a dataTable and this is how I bound my column.

columns.Template(@<span> <a href="javascript:View('@item.Row["ID"]')">Detail</a></span>)


What will be the ClientTemplate for it.

Thanks.

1 Answer, 1 is accepted

Sort by
0
scorp
Top achievements
Rank 1
answered on 22 Dec 2011, 11:13 PM
I had to bind it to get the value:
columns.Bound(o => o.Row["ID"]).Template(@<span> <a href="javascript:View('@item.Row["ID"]')">Detail</a></span>)
.ClientTemplate(@"<a href=""javascript:ViewAppHistory('<#=ID#>')"">Detail</a>");
Tags
Grid
Asked by
scorp
Top achievements
Rank 1
Answers by
scorp
Top achievements
Rank 1
Share this question
or