Class DataHelper
Common helper class. Implements most of ICommonDataHelper members
Inheritance
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.RadChart.dll
Syntax
public abstract class DataHelper : ICommonDataHelper
Constructors
DataHelper()
Declaration
protected DataHelper()
Properties
ColumnNameSupported
Returns true if data source supports columns naming or false in other cases
Declaration
public abstract bool ColumnNameSupported { get; }
Property Value
|
System.Boolean
|
ColumnsCount
Returns the data source columns count
Declaration
public abstract int ColumnsCount { get; }
Property Value
|
System.Int32
|
RowsCount
Returns the data source rows count
Declaration
public abstract int RowsCount { get; }
Property Value
|
System.Int32
|
Methods
GetColumnIndex(String)
Gets the column index by column name in the Data Source object
Declaration
public abstract int GetColumnIndex(string columnName)
Parameters
|
System.String
columnName
Column name |
Returns
|
System.Int32
Column index if column found or -1 if column not found |
Remarks
This method is not supported by all data sources
GetColumnName(Int32)
Gets the column name if it is supported by data source
Declaration
public abstract string GetColumnName(int columnIndex)
Parameters
|
System.Int32
columnIndex
Column index |
Returns
|
System.String
Column name if supported by a data source |
GetDoubleValue(Int32, Int32)
Return the double value at the given row and column
Declaration
public double GetDoubleValue(int rowIndex, int columnIndex)
Parameters
|
System.Int32
rowIndex
Row position index |
|
System.Int32
columnIndex
Column index |
Returns
|
System.Double
Double value at given column and row |
GetFilteredColumn(Int32)
Return unique column's content
Declaration
public object[] GetFilteredColumn(int columnIndex)
Parameters
|
System.Int32
columnIndex
Column index |
Returns
|
System.Object[]
Objects array with unique column values |
GetGanttValuesColumns()
Returns all possible data source columns that could be used as Gantt series items
Declaration
public int[] GetGanttValuesColumns()
Returns
|
System.Int32[]
Data source columns array available for a Gantt series data binding |
GetGroupsColumnIndex()
Returns possible groups column used for automatic data binding
Declaration
public int GetGroupsColumnIndex()
Returns
|
System.Int32
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(Int32)
Returns possible column used as labels source when group column present
Declaration
public int GetLabelsColumnIndex(int groupColumn)
Parameters
|
System.Int32
groupColumn
DataGroupColumn index in a data source |
Returns
|
System.Int32
Column index that can be used as a series item labels source |
GetObjectValue(Int32, Int32)
Return the object value at the given row and column
Declaration
public abstract object GetObjectValue(int rowIndex, int columnIndex)
Parameters
|
System.Int32
rowIndex
Row position index |
|
System.Int32
columnIndex
Column index |
Returns
|
System.Object
Object value at given column and row from data source |
GetSortedAndFilteredColumn(Int32)
Return sorted unique column's content
Declaration
public object[] GetSortedAndFilteredColumn(int columnIndex)
Parameters
|
System.Int32
columnIndex
Column index |
Returns
|
System.Object[]
Objects array with unique column values sorted ascending |
GetStringValue(Int32, Int32)
Return the string value at the given row and column
Declaration
public string GetStringValue(int rowIndex, int columnIndex)
Parameters
|
System.Int32
rowIndex
Row position index |
|
System.Int32
columnIndex
Column index |
Returns
|
System.String
String value at given column and row of a data source |
GetValuesXColumnIndex()
Gets possible series items X values column
Declaration
public int GetValuesXColumnIndex()
Returns
|
System.Int32
Possible series items X values column's index or -1 if no proper column found |
GetValuesYColumnIndex()
Gets possible series items Y values column
Declaration
public int GetValuesYColumnIndex()
Returns
|
System.Int32
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
public int[] GetValuesYColumns()
Returns
|
System.Int32[]
Possible numeric columns array available for a data binding |
IsColumnNumeric(Int32)
Returns true if given column contains numeric values
Declaration
public abstract bool IsColumnNumeric(int columnIndex)
Parameters
|
System.Int32
columnIndex
Column index |
Returns
|
System.Boolean
True if data source column contains numeric values |
IsColumnString(Int32)
Returns true if given column contains string type values
Declaration
public abstract bool IsColumnString(int columnIndex)
Parameters
|
System.Int32
columnIndex
Column index |
Returns
|
System.Boolean
True if data source column contains string values |
IsItemNumeric(Int32, Int32)
Returns true if value at the given position is numeric
Declaration
public bool IsItemNumeric(int rowIndex, int columnIndex)
Parameters
|
System.Int32
rowIndex
Row position index of data item in a data source |
|
System.Int32
columnIndex
Column index of data item in a data source |
Returns
|
System.Boolean
True if data item contains numeric value at given row and column |
IsNullableType(Type)
Checks is given type is Nullable
Declaration
protected static bool IsNullableType(Type type)
Parameters
|
System.Type
type
Type to check |
Returns
|
System.Boolean
True if type is Nullable, or False |
IsTypeNumeric(Type)
Checks whether the type given is numeric
Declaration
protected static bool IsTypeNumeric(Type type)
Parameters
|
System.Type
type
Type to check |
Returns
|
System.Boolean
True if Type is numeric |
IsTypeString(Type)
Checks whether the type given is string type
Declaration
protected static bool IsTypeString(Type type)
Parameters
|
System.Type
type
Type to check |
Returns
|
System.Boolean
True if given type is string |
IsValueString(Object)
Checks whether the value's type is String
Declaration
protected static bool IsValueString(object obj)
Parameters
|
System.Object
obj
Object to check |
Returns
|
System.Boolean
True if object can be converted to string |