Class
DataHelper

Common helper class. Implements most of ICommonDataHelper members

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
public abstract class DataHelper

Inheritance: objectDataHelper

Derived Classes: DataTableDataHelper

Constructors

DataHelper()

Declaration

cs-api-definition
protected DataHelper()

Properties

ColumnNameSupported

Returns true if data source supports columns naming or false in other cases

Declaration

cs-api-definition
public abstract bool ColumnNameSupported { get; }

Property Value

bool

ColumnsCount

Returns the data source columns count

Declaration

cs-api-definition
public abstract int ColumnsCount { get; }

Property Value

int

RowsCount

Returns the data source rows count

Declaration

cs-api-definition
public abstract int RowsCount { get; }

Property Value

int

Methods

GetColumnIndex(string)

Gets the column index by column name in the Data Source object

Declaration

cs-api-definition
public abstract int GetColumnIndex(string columnName)

Parameters

columnName

string

Column name

Returns

int

Column index if column found or -1 if column not found

Remarks

This method is not supported by all data sources

GetColumnName(int)

Gets the column name if it is supported by data source

Declaration

cs-api-definition
public abstract string GetColumnName(int columnIndex)

Parameters

columnIndex

int

Column index

Returns

string

Column name if supported by a data source

GetDoubleValue(int, int)

Return the double value at the given row and column

Declaration

cs-api-definition
public double GetDoubleValue(int rowIndex, int columnIndex)

Parameters

rowIndex

int

Row position index

columnIndex

int

Column index

Returns

double

Double value at given column and row

GetFilteredColumn(int)

Return unique column's content

Declaration

cs-api-definition
public object[] GetFilteredColumn(int columnIndex)

Parameters

columnIndex

int

Column index

Returns

object[]

Objects array with unique column values

GetGanttValuesColumns()

Returns all possible data source columns that could be used as Gantt series items

Declaration

cs-api-definition
public int[] GetGanttValuesColumns()

Returns

int[]

Data source columns array available for a Gantt series data binding

GetGroupsColumnIndex()

Returns possible groups column used for automatic data binding

Declaration

cs-api-definition
public int GetGroupsColumnIndex()

Returns

int

Automatically found possible column with repeating values for a data grouping

Remarks

Only the first found numeric column will be checked. If such column is not found or does not contain repeatable values the -1 will be returned

GetLabelsColumnIndex(int)

Returns possible column used as labels source when group column present

Declaration

cs-api-definition
public int GetLabelsColumnIndex(int groupColumn)

Parameters

groupColumn

int

DataGroupColumn index in a data source

Returns

int

Column index that can be used as a series item labels source

GetObjectValue(int, int)

Return the object value at the given row and column

Declaration

cs-api-definition
public abstract object GetObjectValue(int rowIndex, int columnIndex)

Parameters

rowIndex

int

Row position index

columnIndex

int

Column index

Returns

object

Object value at given column and row from data source

GetSortedAndFilteredColumn(int)

Return sorted unique column's content

Declaration

cs-api-definition
public object[] GetSortedAndFilteredColumn(int columnIndex)

Parameters

columnIndex

int

Column index

Returns

object[]

Objects array with unique column values sorted ascending

GetStringValue(int, int)

Return the string value at the given row and column

Declaration

cs-api-definition
public string GetStringValue(int rowIndex, int columnIndex)

Parameters

rowIndex

int

Row position index

columnIndex

int

Column index

Returns

string

String value at given column and row of a data source

GetValuesXColumnIndex()

Gets possible series items X values column

Declaration

cs-api-definition
public int GetValuesXColumnIndex()

Returns

int

Possible series items X values column's index or -1 if no proper column found

GetValuesYColumnIndex()

Gets possible series items Y values column

Declaration

cs-api-definition
public int GetValuesYColumnIndex()

Returns

int

Possible series items Y values column's index or -1 if no proper column found

GetValuesYColumns()

Returns all possible series items Y values columns

Declaration

cs-api-definition
public int[] GetValuesYColumns()

Returns

int[]

Possible numeric columns array available for a data binding

IsColumnNumeric(int)

Returns true if given column contains numeric values

Declaration

cs-api-definition
public abstract bool IsColumnNumeric(int columnIndex)

Parameters

columnIndex

int

Column index

Returns

bool

True if data source column contains numeric values

IsColumnString(int)

Returns true if given column contains string type values

Declaration

cs-api-definition
public abstract bool IsColumnString(int columnIndex)

Parameters

columnIndex

int

Column index

Returns

bool

True if data source column contains string values

IsItemNumeric(int, int)

Returns true if value at the given position is numeric

Declaration

cs-api-definition
public bool IsItemNumeric(int rowIndex, int columnIndex)

Parameters

rowIndex

int

Row position index of data item in a data source

columnIndex

int

Column index of data item in a data source

Returns

bool

True if data item contains numeric value at given row and column

IsNullableType(Type)

Checks is given type is Nullable

Declaration

cs-api-definition
protected static bool IsNullableType(Type type)

Parameters

type

Type

Type to check

Returns

bool

True if type is Nullable, or False

IsTypeNumeric(Type)

Checks whether the type given is numeric

Declaration

cs-api-definition
protected static bool IsTypeNumeric(Type type)

Parameters

type

Type

Type to check

Returns

bool

True if Type is numeric

IsTypeString(Type)

Checks whether the type given is string type

Declaration

cs-api-definition
protected static bool IsTypeString(Type type)

Parameters

type

Type

Type to check

Returns

bool

True if given type is string

IsValueString(object)

Checks whether the value's type is String

Declaration

cs-api-definition
protected static bool IsValueString(object obj)

Parameters

obj

object

Object to check

Returns

bool

True if object can be converted to string