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

[Solved] DetailView alternate row css not set

2 Answers 68 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.
Travis
Top achievements
Rank 1
Travis asked on 18 Oct 2011, 06:42 PM
I have a grid with a DetailView that is using a ClientTemplate:

.DetailView(details => details.ClientTemplate("<#= Comments #>"))

The grid by default uses alternating row css to distinguish rows, but the DetailView does not seem to inherit this css style making it look like a separate row for the alternate rows. 

2 Answers, 1 is accepted

Sort by
0
Travis
Top achievements
Rank 1
answered on 18 Oct 2011, 07:02 PM
I can get around this with the following code that is executed onDataBind, but it should be fixed IMO:

$(".t-alt").each(function (index) {
$(this).next().attr("class", "t-detail-row t-alt")
});
0
Dimo
Telerik team
answered on 19 Oct 2011, 10:09 AM
Hello Travis,

You are right. We have fixed the problem and changes will take effect in the next internal build of our MVC components. I have updated your Telerik points for bringing the issue to our attention.

Regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Travis
Top achievements
Rank 1
Answers by
Travis
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or