Ignite UI API Reference
ig.OlapTableViewHeaderCell
Provides an information about displayed header cell content and how it relates to $.ig.AxisMember object.
Code Sample
<!doctype html> <html> <head> <!-- jQuery Core --> <script src="js/jquery.js" type="text/javascript"></script> <!-- jQuery UI --> <script src="js/jquery-ui.js" type="text/javascript"></script> <!-- Infragistics Combined Scripts --> <script src="js/infragistics.core.js" type="text/javascript"></script> <script src="js/infragistics.lob.js" type="text/javascript"></script> <script type="text/javascript"> $.support.cors = true; $(function () { var dataSource = new $.ig.OlapXmlaDataSource({ serverUrl: "http://sampledata.infragistics.com/olap/msmdpump.dll", catalog: "Adventure Works DW Standard Edition", cube: "Adventure Works", rows: "[Date].[Calendar]", measures: "[Measures].[Customer Count], [Measures].[Internet Order Count]" }); dataSource.initialize().done(function(metadataTree) { // the result of the pre-loaded rows, columns, filters and measures is evaluated as part of initialization var result = dataSource.result(); var viewSettings = { isParentInFrontForColumns: true, isParentInFrontForRows: true, compactRowHeaders: true, compactColumnHeaders: false }; var hasColumns = dataSource.columnAxis().length > 0; var hasRows = dataSource.rowAxis().length > 0; // create and initialize the table view var tableView = new $.ig.OlapTableView(result, hasColumns, hasRows, viewSettings); tableView.initialize(); // obtain layout information about result's row and column headers and its data cells var columnHeaders = this._tableView.columnHeaders(); var rowHeaders = this._tableView.rowHeaders(); var resultCells = tableView.resultCells(); }); }); </script> </head> <body> </body> </html>
Related Topics
Dependencies
jquery-1.4.4.js
infragistics.util.js
The current widget has no options.
The current widget has no events.
-
axisName
- .axisName( );
- Return Type:
- string
- Return Type Description:
- The name of the axis this header cell is related to.
Returns the name of the axis this header cell is related to.
-
caption
- .caption( );
- Return Type:
- string
- Return Type Description:
- The caption for the header cell.
Returns the caption for the header cell.
-
columnIndex
- .columnIndex( );
- Return Type:
- number
- Return Type Description:
- The column index for the header cell.
Returns the column index for the header cell.
-
columnSpan
- .columnSpan( );
- Return Type:
- number
- Return Type Description:
- The column span for the header cell.
Returns the column span for the header cell.
-
isExpanable
- .isExpanable( );
- Return Type:
- bool
- Return Type Description:
- True if the header cell can be expanded, false otherwise.
Indicates whether the header cell can be expanded.
-
isExpanded
- .isExpanded( );
- Return Type:
- bool
- Return Type Description:
- True if the header cell is expanded, false otherwise.
Returns the expaned state for the header cell.
-
memberIndex
- .memberIndex( );
- Return Type:
- number
- Return Type Description:
- The index of the axis member in the tuple.
Returns the index of the axis member in the tuple this header cell is related to.
-
rowIndex
- .rowIndex( );
- Return Type:
- number
- Return Type Description:
- The row index for the header cell.
Returns the row index for the header cell.
-
rowSpan
- .rowSpan( );
- Return Type:
- number
- Return Type Description:
- The row span for the header cell.
Returns the row span for the header cell.
-
tupleIndex
- .tupleIndex( );
- Return Type:
- number
- Return Type Description:
- The index of tuple in the axis.
Returns the index of tuple in the axis this header cell is related to.