Basti
Basti

Reputation: 149

Oracle APEX, Interactive Grid, Check in JS if column is visible

I want to set values in an oracle interactive grid to every checked row.

But my loop via setValue sets also values in cells, that are hidden/that are not in current view.

Is it possible to check via JS, whether a column is visible or not?

Upvotes: 2

Views: 2686

Answers (1)

Coding Duchess
Coding Duchess

Reputation: 6909

Try this to check if a column is visible

var ig$ = apex.region("myGridStaticID").widget(),
    view = ig$.interactiveGrid("getCurrentView");


if(view.modelColumns["MyColumnName"].hidden) {

   console.log("this column is hidden);
 }

Upvotes: 1

Related Questions