Hi all,
I have a problem exporting PDFs... basically when I click on my dropdown from RadToolBar, nothing happens. Below is my code in the user control. Its the "Export Current View" button with CommandName="ExportToPDF."
If it means anything, the RadGrid is in a WebUserControl which is loaded into an aspx page.
Thanks for any help,
Sunny
I have a problem exporting PDFs... basically when I click on my dropdown from RadToolBar, nothing happens. Below is my code in the user control. Its the "Export Current View" button with CommandName="ExportToPDF."
If it means anything, the RadGrid is in a WebUserControl which is loaded into an aspx page.
Thanks for any help,
Sunny
<
telerik:RadGrid
ID
=
"RadGrid_Logs"
runat
=
"server"
AutoGenerateColumns
=
"false"
AllowMultiRowSelection
=
"false"
AllowPaging
=
"True"
AllowCustomPaging
=
"True"
PageSize
=
"10"
AllowAutomaticInserts
=
"false"
GridLines
=
"None"
CellPadding
=
"0"
AllowSorting
=
"false"
Skin
=
"Default"
OnItemDataBound
=
"Log_Translate"
ItemStyle-VerticalAlign
=
"Top"
OnNeedDataSource
=
"RadGrid_Logs_NeedDataSource"
>
<
ExportSettings
IgnorePaging
=
"false"
OpenInNewWindow
=
"true"
>
<
Pdf
PageHeight
=
"297mm"
PageWidth
=
"210mm"
PageTitle
=
"OnTime System Logs"
/>
</
ExportSettings
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
/>
<
MasterTableView
Width
=
"100%"
CommandItemDisplay
=
"Top"
GridLines
=
"None"
AllowAutomaticInserts
=
"false"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"false"
/>
<
CommandItemTemplate
>
<
telerik:RadToolBar
ID
=
"RadToolBar_Logs"
runat
=
"server"
Skin
=
"Default"
OnButtonClick
=
"RadToolBar_Logs_CommandClick"
>
<
Items
>
<
telerik:RadToolBarDropDown
Text
=
"Export"
>
<
Buttons
>
<
telerik:RadToolBarButton
Text
=
"Export Current View"
Group
=
"Bold"
CheckOnClick
=
"true"
AllowSelfUnCheck
=
"true"
CommandName
=
"ExportToPDF"
/>
<
telerik:RadToolBarButton
Text
=
"Export All Records"
Group
=
"Italic"
CheckOnClick
=
"true"
AllowSelfUnCheck
=
"true"
/>
</
Buttons
>
</
telerik:RadToolBarDropDown
>
<
telerik:RadToolBarButton
Text
=
"Control Terminal"
Visible
=
"true"
ImageUrl
=
"Images/Edit.gif"
runat
=
"server"
ID
=
"Edit"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
Text
=
"Refresh Terminals"
Visible
=
"true"
ImageUrl
=
"Images/Refresh.gif"
runat
=
"server"
ID
=
"Refresh"
>
</
telerik:RadToolBarButton
>
</
Items
>
</
telerik:RadToolBar
>
</
CommandItemTemplate
>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"Terminal_Left_Column"
HeaderText
=
"Type"
HeaderStyle-Width
=
"40%"
>
<
ItemTemplate
>
<
asp:Panel
ID
=
"Panel3"
runat
=
"server"
CssClass
=
"logs_table_text"
>
<
asp:Literal
ID
=
"Literal_Log_DateTime"
runat
=
"server"
Text='<%# Eval("Log_DateTime").ToString() %>'></
asp:Literal
>
<
br
/>
<
asp:Literal
ID
=
"Label_Log_Category"
runat
=
"server"
Text='<%# Eval("Log_Category").ToString() %>'></
asp:Literal
>
<
br
/>
<
asp:Literal
ID
=
"Literal_Indent"
runat
=
"server"
Text
=
"-"
></
asp:Literal
>
<
asp:Literal
ID
=
"Label_Log_Type"
runat
=
"server"
Text='<%# Eval("Log_Type").ToString() %>'></
asp:Literal
>
</
asp:Panel
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"Terminal_Right_Column"
HeaderText
=
"Description"
HeaderStyle-Width
=
"60%"
>
<
ItemTemplate
>
<
asp:Panel
ID
=
"Panel4"
runat
=
"server"
CssClass
=
"logs_table_text"
>
<
asp:Literal
ID
=
"Label_Log_Description"
runat
=
"server"
Text='<%# Eval("Log_Description").ToString() %>'></
asp:Literal
>
</
asp:Panel
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>