Xavier LARTEM
Xavier LARTEM

Reputation: 139

Make a tab invisible

I would like to make the activities tab not visible in the screen CR306000.

enter image description here

I used the following code, but the result is KO, while it works on other tabs

    Base.Activities.AllowInsert = false;
    Base.Activities.AllowUpdate = false;
    Base.Activities.AllowDelete = false;
    Base.Activities.AllowSelect = false;


<px:PXTabItem RepaintOnDemand="False" Text="Activities" LoadOnDemand="False">

Upvotes: 0

Views: 239

Answers (1)

Samvel Petrosov
Samvel Petrosov

Reputation: 7706

Instead of setting the AllowSelect = false on the DataView itself set it on the DataView's Cache. That should do the trick

Base.Activities.**Cache**.AllowSelect = false;

Alternatively, you can either configure the Visibility Expression or just set the Visible to false from the aspx.

Upvotes: 1

Related Questions