or
grid.MasterTableView.ExportToPdf();
Thanks!
<telerik:RadWindowManager ID="RadWindow_Conferma" runat="server" Modal="True" Skin="Office2010Silver"> <Windows> <telerik:RadWindow ID="RadWindowLoadprofile" runat="server" ShowContentDuringLoad="false" Width="452px" Height="280px" Style="z-index: 8000" Title="Caricamento immagine profilo" Behaviors="None" Modal="True" AutoSize="true" Behavior="None" Font-Names="Verdana" Font-Size="Small" IconUrl="/image/iconlogo.png" Skin="Office2010Silver" ReloadOnShow="false" VisibleStatusbar="False" RestrictionZoneID="NavigateUrlZone" EnableViewState="False"> <ContentTemplate> <div class="Divloadprofile"> <div id="upload" class="Divloadprofile1"> <table style="border: 0px; margin: 0px; padding: 0px; width: 395px; text-align:center"> <tr> <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding-top: 5px; text-align: center; height:23px"> <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="validateRadUpload" ErrorMessage="File errato" ValidationGroup="carica"></asp:CustomValidator> </td> </tr> <tr> <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding-left:60px; vertical-align: top;"> <telerik:RadUpload ID="RadUpload1" Runat="server" Width="280px" InputSize="35" AllowedFileExtensions=".jpg,.jpeg,.png,.gif" OverwriteExistingFiles="True" TargetFolder="image/image_utenti" ControlObjectsVisibility="None" Height="22px" style="text-align: left" Skin="Sunset" MaxFileSize="3000000"> <Localization Select="Cerca" /> </telerik:RadUpload> </td> </tr> <tr> <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; vertical-align: top; height: 50px"> <div class="Divinfoupload"> Il file deve avere le seguenti estensioni: jpg, jpeg, png, gif<br /> Il file deve avere una grandezza massima di 3 Mb.<br /> Risoluzione ottimale consigliata: 128x128 pixel. </div> </td> </tr> </table> <div style="width:395px; padding-top: 10px"> <table style="width: 100%;"> <tr> <td style="text-align:center"> <asp:ImageButton ID="Imgbtncarica" runat="server" ImageUrl="~/Image/Upload.png" ValidationGroup="carica" /> </td> <td style="text-align:center"> <asp:ImageButton ID="Imgbtnesci_6" runat="server" ImageUrl="~/Image/esci1.png" /> </td> </tr> </table> </div> </div> <div id="conferma" class="Divloadprofile1" style="padding-top:10px;display:none"> <div> <asp:Image ID="Imgprofile_2" runat="server" ImageUrl="~/Image/avatar.png" Height="250px" Width="250px" CssClass="AnteprimaImgmaxsize"/> </div> <div style="width:395px; padding-top: 10px"> <table style="width: 100%;"> <tr> <td align="center"> <asp:ImageButton ID="Imgbtnesci_7" runat="server" ImageUrl="~/Image/esci1.png" /> </td> </tr> </table> </div> </div> </div> </ContentTemplate> </telerik:RadWindow> </Windows> </telerik:RadWindowManager>
<telerik:RadGrid ID="radGridSummary" runat="server" AutoGenerateColumns="false" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1" Width="587px" CellPadding="0" GridLines="Both" Font-Size="11px" OnItemDataBound="radGridSummary_ItemDataBound" OnItemCommand="radGridSummary_ItemCommand"> <HeaderStyle Font-Bold="true" ForeColor="#031d5b" VerticalAlign="Middle" Height="20" CssClass="pointerOnly headerGridRB" /> <ItemStyle CssClass="radGridItem" /> <AlternatingItemStyle CssClass="radGridAltItem" /> <ClientSettings EnablePostBackOnRowClick="true" EnableRowHoverStyle="true" Scrolling-UseStaticHeaders="true" Scrolling-AllowScroll="true" Scrolling-ScrollHeight="200px" /> <MasterTableView BorderWidth="0" DataKeyNames="TaskID, TaskLevel, TaskActivity"> <Columns> <telerik:GridBoundColumn DataField="TaskDescription" HeaderText="Description" SortExpression="TaskDescription"> <HeaderStyle HorizontalAlign="Left" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="Level"> <HeaderStyle HorizontalAlign="Center" Width="70px" /> <ItemStyle HorizontalAlign="Center" /> <ItemTemplate> <%-- Note: This needs to remain as a Label, as it's accessed by code in 'IndicateRowDeletion' --%> <asp:Label ID="labelLevelName" runat="server" Text='<%# GetLevelDescription(Convert.ToInt32(Eval("TaskLevel"))) %>' /> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="ActivityMajTask" HeaderText="Activity" SortExpression="ActivityMajTask"> <HeaderStyle HorizontalAlign="Center" /> <%-- Note: Removed Width restriction to allow this one to expand as needed --%> <ItemStyle HorizontalAlign="Center" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TaskStdHours" HeaderText="Std Hours" SortExpression="TaskStdHours" DataFormatString="{0:F2}"> <HeaderStyle HorizontalAlign="Center" Width="70px" /> <ItemStyle HorizontalAlign="Right" CssClass="indentRight20" /> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="Completed"> <HeaderStyle HorizontalAlign="Center" Width="70px" /> <ItemStyle HorizontalAlign="Center" /> <ItemTemplate> <%-- Note: This needs to remain as a Label, as it's accessed by code in 'IndicateRowDeletion' --%> <asp:Label ID="labelCompleted" runat="server" Text='<%# Convert.ToBoolean(Eval("TaskStatus")) ? "Yes" : "No" %>' /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView></telerik:RadGrid><telerik:RadAjaxManagerProxy id="RadAjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="cboPhysMunicipality"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="cboPhysDistrictOffice" LoadingPanelID="RadAjaxLoadingPanel1"/> <telerik:AjaxUpdatedControl ControlID="cboMailStateCountry" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy>
