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

RadGrid - ItemTemplate Eval statement returning one element.

1 Answer 33 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Brian asked on 12 Apr 2021, 02:53 PM

I am trying to display a list of items and have created an Item Template to create a customizable pdf. I have tried creating another RadGrid within an Item Template, however the designer will not pickup the new RadGrid there. I would like to display the entire ClassList

<telerik:RadGrid RenderMode="Lightweight" ID="RadGridWrapper1" runat="server" OnItemCommand="radGridClasses_ItemCommand"
    OnNeedDataSource="RadGridWrapper1_NeedDataSource" GroupingEnabled="true" AllowPaging="true" >
    <ExportSettings OpenInNewWindow="true" ExportOnlyData="false" Pdf-BorderType="NoBorder" >
        <Pdf DefaultFontFamily="Arial Unicode MS" AllowPrinting="true" ForceTextWrap="true" BorderType="NoBorder" >
                <LeftCell TextAlign="Center" />
                <MiddleCell TextAlign="Center" Text="My Class List" />
                <RightCell Text="Page: <?page-number?>" TextAlign="Center" />
    <MasterTableView AutoGenerateColumns="false" ShowHeader="false" CommandItemDisplay="top" TableLayout="Auto" >
            <div class="container-fluid m-3">
                <asp:LinkButton ID="btnExport" CommandName="ExportToPdf" runat="server" CssClass="mr-3 float-right" ToolTip="Export to PDF">
                    <i class="fas fa-3x fa-file-pdf"></i>
        <CommandItemSettings ShowExportToCsvButton="false" ShowExportToExcelButton="false" ShowExportToPdfButton="true"
            ShowExportToWordButton="false" ShowAddNewRecordButton="false" />
                    <telerik:GridTemplateColumn UniqueName="ClassListDisplay">
                            <table style="width: 100%; text-align: left">
                                    <col />
                                <tr style="border:none">
                                    <td> </td>
                                <tr style="font-size: 14pt; margin-top: 5px; padding-top:5px; vertical-align: middle; text-align: left; border-top: 2px solid; background-color: lightgray;"
                                <tr style="border:none">
                                    <td> </td>
                                    <td><b>Classes</b>: <%# Eval("ClassList") %></td>

1 Answer, 1 is accepted

Sort by
Attila Antal
Telerik team
answered on 15 Apr 2021, 08:08 AM

Hi Brian,

Template Columns are always custom, and when it comes to exporting, you will need to follow a few additional steps to extract the data. Please check out the Export Template Columns article and follow the instructions to export Template Columns.

Attila Antal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at

Asked by
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question