This question is locked. New answers and comments are not allowed.
I'm running into some problems getting DetailView to work in Grid under the Razor view engine. This is probably me putting the wrong syntax in the template area, but I couldn't find any examples that didn't use another control in the template. I'm not sure how to enter just XHTML markup in there.
Thanks for any assistance.
<!-- start fax-table ............................. -->
@Html.Telerik().Grid(Model).Name("Grid").Columns(columns => {
columns.Bound(o => o.Facilityname).Width(400);
columns.Bound(o => o.Deptname).Width(300);
columns.Bound(o => o.Fullname).Width(200);
columns.Bound(o => o.Runnumber).Width(100);
columns.Bound(o => o.Processeddate).Width(220);
columns.Bound(o => o.Faxphone).Width(200);
columns.Bound(o => o.Winfaxerror).Width(450);
}).DetailView(detailView => detailView.Template(e =>
{
@<
text
>
<
div
>
<
ul
>
<
li
>Company sent from: @e.Companyname </
li
>
<
li
>Rule name that spawned fax: @e.Rule</
li
>
<
li
>Report faxed: @e.Processeddate</
li
>
<
li
>Run Nbr: @e.Runnumber</
li
>
<
li
>Destination: @e.Facilityname</
li
>
<
li
>Patient on trip faxed: @e.Fullname</
li
>
<
li
>Fax Nbr: @e.Faxphone</
li
>
<
li
>Date submitted: @e.Processeddate</
li
>
<
li
>Who submitted: @e.Whoprocessed</
li
>
<
li
>Fax status msg: @e.Winfaxerror</
li
>
<
li
>Send method: @e.Sendmethod</
li
>
<
li
>Date last modified: @e.Lastmodifieddate</
li
>
<
li
>Who last modified: @e.Whomodified</
li
>
</
ul
>
</
div
>
</
text
>;
})).Sortable().Pageable(pager => pager.PageSize(15)).Filterable()
<!-- end fax-table................................... -->
Thanks for any assistance.