Page 1 of 1

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

Posted: Thu Feb 02, 2017 12:11 am
by Joni de Campos

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 ?


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

Posted: Thu Feb 02, 2017 12:51 pm
by Serhii Kulibaba

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


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

Posted: Thu Feb 02, 2017 12:55 pm
by Joni de Campos

Thanks Sergiy for the fast reply.

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

if ( score < 0.40)
{

element.hide();
}