TabSheet.isLastVisibleColumn

Syntax

isLastVisibleColumn(colIndex: Number);

Parameters

colIndex. Table column index.

Description

The isLastVisibleColumn method determines whether a given column is the last visible column.

Comments

This method returns True if the given column is the last of the visible table columns, otherwise it returns False.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Hide the row and column with the 2 index in the table. Determine whether the visible range includes columns E and F, and rows with the 4 and 5 indexes. Also, check if the last row and last column in the visible range are the last not hidden row and column in the table:

// Hide the third rows and column
tabSheet.hideRows(2, 1);
tabSheet.hideColumns(2,1);
// Refresh table
tabSheet.rerender();
// Get information about table rows and columns
console.log("The E column in the visible range " + (tabSheet.isColInsideVisibleRange(5) ? "is included." : "is not included."));
console.log("The F column in the visible range " + (tabSheet.isColInsideVisibleRange(6) ? "is included." : "is not included."));
var isLastVisibleColumn = tabSheet.isLastVisibleColumn(5) ? "is." : "is not.";
console.log("The last column of visible range " + isLastVisibleColumn + " last non-hidden in table.");
console.log("A row with the 4 index in the visible range " + (tabSheet.isRowInsideVisibleRange(4) ? "is included." : "is not included."));
console.log("A row with the 5 index in the visible range " + (tabSheet.isRowInsideVisibleRange(5) ? "is included." : "is not included."));
var isLastVisibleRow = tabSheet.isLastVisibleRow(5) ? "is." : "is not.";
console.log("The last row of the visible range " + isLastVisibleRow + " last non-hidden in table.");

After executing the example the row and column with the 2 index are hidden:

The browser console displays whether the visible range includes columns E and F, and rows with the the 4 and 5 indexes, and also the information whether the last row and last column in the visible range are the last not hidden in the table:

The E column is included into the visible range.

The F column is not included into the visible range.

The last column of the visible range is not the last not hidden in the table.

The row with the index 4 is included into the visible range.

The row with the index 5 is not included into the visible range.

The last row of the visible range is not the last not hidden in the table.

Seebsp;also:

TabSheet