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

[Solved] DetailView and column ClientTemplate

1 Answer 156 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.
kobo33
Top achievements
Rank 1
kobo33 asked on 23 Aug 2010, 06:15 PM
Hi
Is there a way to use ClientTemplate in the DetailView grid in the hierarchy ?
some thing like the code marked at bold (from the demo view page ):
<%= Html.Telerik().Grid<EmployeeViewModel>()
       
.Name("Employees")
       
.Columns(columns =>
       
{
            columns
.Bound(e => e.FirstName).Width(140);
            columns
.Bound(e => e.LastName).Width(140);
            columns
.Bound(e => e.Title).Width(200);
            columns
.Bound(e => e.Country).Width(200);
            columns
.Bound(e => e.City);
       
})
       
.ClientEvents(events => events.OnRowDataBound("employees_onRowDataBound"))
       
.DetailView(details => details.ClientTemplate(
               
Html.Telerik().Grid<OrderViewModel>()
                   
.Name("Orders_<#= EmployeeID #>")
                   
.Columns(columns =>
                   
{
                        columns
.Bound(o => o.OrderID).Width(101);
                        columns
.Bound(o => o.ShipCountry).Width(140);
                        columns
.Bound(o => o.ShipAddress).Width(200);
                        columns
.Bound(o => o.ShipName).Width(200).ClientTemplate("<B><#= ShipName #><B>");
                        columns
.Bound(o => o.ShippedDate).Format("{0:d}");
                   
})
...
Thanks Kobo

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 24 Aug 2010, 07:18 AM
Hi kobo33,

There is a known issue with the Q2 beta when using client templates and detail views. We have fixed that bug and the fix will be part of the upcoming Q2 2010 release. You can expect it in a few days.

All the best,
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
kobo33
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or