Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

How to hide a cell of a Grid used as a list based on a value.

I am using a Grid as a list to show s service response list of values

A score variable determines if the cell shoud be visible or not.

I need to hide a cell if the score result is bellow a certain value.

Any tip ?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to hide a cell of a Grid used as a list based on a value.

Hello Joni,

Yes, it is possible to do. Please use JS on the mapping $-grid like that:
preelement.find("[name=mobilegridcell_9]").hide()/pre here mobilegridcell_9 -name of your grid cell

Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

How to hide a cell of a Grid used as a list based on a value.

Thanks Sergiy for the fast reply.

Using the following JS on the mapping $-grid also works.

if ( score < 0.40)
{

element.hide();
}

Return to “Issues”