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

Grid Print Issue in IE

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rahul
Top achievements
Rank 1
rahul asked on 13 Mar 2014, 11:54 AM
Hi,
      I want to print a grid data, I am Using browser IE9.
When i print a grid data after printed data not display well on paper just like as  Grid  Column Header are not shown, scroll shown, all column data not shown.
please find the attach and provide solutions.

And My grid code is:
<asp:UpdatePanel ID="update_lease__report" runat="server">
<ContentTemplate>
        <telerik:RadGrid CssClass="MyGrid"  ID="gv_Lease_Report" runat="server"                                                 AllowFilteringByColumn="True" AllowSorting="True"   ShowGroupPanel="True" AutoGenerateColumns="False"  PageSize="10"    ShowStatusBar="true" onneeddatasource="gv_Lease_Report_NeedDataSource"  OnItemCreated="gv_Lease_Report_ItemCreated"                                            OnHTMLExporting="gv_Lease_Report_HtmlExporting"           onexcelexportcellformatting="gv_Lease_Report_ExcelExportCellFormatting" >
     <ExportSettings IgnorePaging="true" OpenInNewWindow="true">
             <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm"
                  BorderStyle="Medium" BorderColor="#666666" PaperSize="A4" >
    </Pdf>                                                       
    </ExportSettings>
     <ClientSettings AllowDragToGroup="True" >
                  <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true"  />       </ClientSettings>
       <MasterTableView  AutoGenerateColumns="false">
                  <FilterItemStyle HorizontalAlign="Left" />
                          <NoRecordsTemplate>
                                 <asp:Label ID="lbl_no_record" runat="server" Text="No record exist"></asp:Label>
                          </NoRecordsTemplate>
          <Columns>                                                                   
                 <telerik:GridBoundColumn  Display="false" DataField="UnitContractId" DataType="System.String" HeaderText="Unit Contract Id" FilterControlAltText="Filter column column" UniqueName="UnitContractId" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">                                                                                                                                                                                </telerik:GridBoundColumn>
    <telerik:GridBoundColumn  DataField="ParcelName" DataType="System.String" HeaderText="Parcel Name" FilterControlAltText="Filter column column" UniqueName="ParcelName" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
   </telerik:GridBoundColumn>                                                          
         <telerik:GridBoundColumn  DataField="UnitNo" DataType="System.String" HeaderText="Unit Number" FilterControlAltText="Filter column column" UniqueName="UnitNo" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >
  </telerik:GridBoundColumn>
       <telerik:GridBoundColumn  DataField="TenentName" DataType="System.String" HeaderText="Tenent Name" FilterControlAltText="Filter column column" UniqueName="TenentName" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
     </telerik:GridBoundColumn>                                                                      
          <telerik:GridDateTimeColumn DataField="ContractStartDate" HeaderText="Contract Start Date"  FilterControlAltText="Filter column column" UniqueName="ContractStartDate" PickerType="DatePicker" FilterDateFormat="dd/MM/yyyy" DataFormatString="{0:dd/MM/yyyy}"   ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" > </telerik:GridDateTimeColumn>     
     <telerik:GridDateTimeColumn DataField="ContractEndDate" HeaderText="Contract End Date" FilterControlAltText="Filter column column" UniqueName="ContractEndDate" PickerType="DatePicker" FilterDateFormat="dd/MM/yyyy" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridDateTimeColumn>                                                              
          <telerik:GridBoundColumn  DataField="ContractAmount" DataType="System.Decimal" HeaderText="Contract Amount" FilterControlAltText="Filter column column" UniqueName="ContractAmount" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
           </telerik:GridBoundColumn>
   </Columns>
 </MasterTableView>                                                    
    </telerik:RadGrid>
          </ContentTemplate>                                             
    </asp:UpdatePanel>

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 18 Mar 2014, 08:37 AM
Hi Rahul,

Please make sure that you have disabled the Scrolling/StaticHeaders functionality before exporting to PDF. Also make sure that you have disable the ajax as well.

Regards,
Kostadin
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
Grid
Asked by
rahul
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or