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

[Solved] Custom Client Template

1 Answer 137 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.
Project House
Top achievements
Rank 1
Project House asked on 29 Dec 2010, 03:50 PM
Hi,
I want to link email column with Id info.
I tried to do it with format, ClientTemplace but couldn't success.
My source code is below;
<%: Html.Telerik()
.Grid(Model.PassiveSubscriberList)
.Name("GridUnsubscribers")
.DataBinding(db => db.Ajax().Select("_BindUnsubscribers", "Report"))
.Columns(column =>
{
column.Bound(c => c.Id).Visible(false);
column.Bound(c => c.Email);
column.Bound(c => c.Reason);
column.Bound(c => c.DeactiveDate);
column.Bound(c => c.DeactiveType);
})
.Pageable()
.Sortable()
.Filterable()
%>

I want to see email addresses like this; <a href='<#= c.Id #>'><#= c.Email #></a>

Waiting your answer
All the best

Tayfun Çanakçi

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 29 Dec 2010, 05:45 PM
Hello Onur Buyukcaglar,

 Try this:

ClientTemplate("<a href='<#=  Id #>'><#= Email #></a>")

Regards,

Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Project House
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or