New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Class holding settings associated with the RadGrid exporting to Excel functionality.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridExcelSettings : ObjectWithState

Inheritance: objectObjectWithStateGridExcelSettings

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public GridExcelSettings(StateBag OwnerStateBag)
Parameters:OwnerStateBagStateBag

Properties

Determines whether RadGrid will auto-fit the columns' width based on the length of the content. False by default. XLSX format only.

C#
public ExportAutoFitWidthMode AutoFitColumnWidth { get; set; }

Determines whether RadGrid will fit the image within the boundaries of its parent cell (true) or will leave it with the default dimensions (false). False by default. BIFF only.

C#
public bool AutoFitImages { get; set; }

Determines the default header cell alignment when exporting to Excel. Default value is 'NotSet'.

C#
public HorizontalAlign DefaultCellAlignment { get; set; }

Gets or sets the file extension for RadGrid Excel export.

C#
public string FileExtension { get; set; }
Property Value:

The file extension for RadGrid Excel export.

Gets or sets in which format the Excel data will be exported.

C#
public GridExcelExportFormat Format { get; set; }
Property Value:

The Excel format type.

A string specifying the name of the worksheet that will be created. If none is set, the ExportSettings.FileName will be used for a Worksheet name. Not applicable for ExcelFormat.Html.

C#
public string WorksheetName { get; set; }