I would like to hide data from contextmenu based on a condition.
ex .
UI.TableContextMenu =
{id:‘varContextMenu’,view:‘contextmenu’, data:[‘Mango’,‘Rose’]};
if its a fruit - I need to display Mango
if its a flower - I need to display Rose
how do i do that dynamically ?