GridPanel.setRowVisibility

Syntax

setRowVisibility (rowNumber, value);

Parameters

rowNumber. Row serial number.

value. Determines whether the row is visible.

Description

The setRowVisibility method determines whether the selected table row is visible.

Example

To execute the example, the HTML page must contain GridPanel component named container (see Example of Creating the GridPanel Component). It requires the DIV tags with the "ne1" and "ch1" identifiers. Add to the page a value editor used to set row number (starting from zero) and a checkbox that determines if the specified row is shown:

    var numberV = new PP.Ui.NumberEdit({ ParentNode: document.getElementById("ne1"), Width: 50, MaxValue: 1 });

    row = numberV.getValue();

    var check = new PP.Ui.CheckBox({ ParentNode: document.getElementById("ch1"), Content: "Visibility" });

    check.setChecked(true);

    check.CheckedChanged.add(function (sender, args) {

        visible = check.getChecked();

        container.setRowVisibility(row, visible)

});

The value editor, which value determines the row number and the Visibility checkbox which hides specified row when deselected are added to the HTML page after an example execution.

See also:

GridPanel