ImportTableOptions

ImportTableOptions class

Represents the options of importing data into cells.

class ImportTableOptions;

Constructors

NameDescription
constructor()Creates the default importing options.

Properties

PropertyTypeDescription
convertGridStylebooleanIndicates whether apply the style of the grid view to cells.
convertNumericDatabooleanGets or sets a value that indicates whether the string value should be converted to numeric or date value.
insertRowsbooleanIndicates whether new rows should be added for importing data records.
shiftFirstRowDownbooleanIndicates whether shifting the first row down when inserting rows.
isFieldNameShownbooleanIndicates whether field name should be imported.
exportCaptionAsFieldNamebooleanIndicates whether exporting caption as field name
dateFormatstringGets or sets date format string for cells with imported datetime values.
numberFormatsstring[]Gets or sets the number formats
isFormulasboolean[]Indicates whether the data are formulas.
totalRowsnumberGets or sets total row count to import from data source. -1 means all rows of given data source.
totalColumnsnumberGets or sets total column count to import from data source. -1 means all rows of given data source.
columnIndexesnumber[]Gets or sets the columns(0-based) to import from data source. null means all columns should be imported.
defaultValuesVObject[]Default value for the value in the table is null.
isHtmlStringbooleanIndicates whether the value contains html tags.
checkMergedCellsbooleanIndicates whether checking merged cells.

constructor()

Creates the default importing options.

constructor();

convertGridStyle

Indicates whether apply the style of the grid view to cells.

convertGridStyle : boolean;

convertNumericData

Gets or sets a value that indicates whether the string value should be converted to numeric or date value.

convertNumericData : boolean;

insertRows

Indicates whether new rows should be added for importing data records.

insertRows : boolean;

shiftFirstRowDown

Indicates whether shifting the first row down when inserting rows.

shiftFirstRowDown : boolean;

isFieldNameShown

Indicates whether field name should be imported.

isFieldNameShown : boolean;

exportCaptionAsFieldName

Indicates whether exporting caption as field name

exportCaptionAsFieldName : boolean;

Remarks

Only works for DataTable.

dateFormat

Gets or sets date format string for cells with imported datetime values.

dateFormat : string;

numberFormats

Gets or sets the number formats

numberFormats : string[];

isFormulas

Indicates whether the data are formulas.

isFormulas : boolean[];

totalRows

Gets or sets total row count to import from data source. -1 means all rows of given data source.

totalRows : number;

totalColumns

Gets or sets total column count to import from data source. -1 means all rows of given data source.

totalColumns : number;

columnIndexes

Gets or sets the columns(0-based) to import from data source. null means all columns should be imported.

columnIndexes : number[];

defaultValues

Default value for the value in the table is null.

defaultValues : VObject[];

isHtmlString

Indicates whether the value contains html tags.

isHtmlString : boolean;

checkMergedCells

Indicates whether checking merged cells.

checkMergedCells : boolean;