DynamicGrid
DynamicGrid copied to clipboard
Setting which column to move
Hi, Is there a way to restrict column 1 to not be moved? I'm trying to make a meal planner chart wherein the user can move meals from a day to another. The first column is the column for dates, and must not move. Is there any way I can do this with your DynamicGrid? Thanks in advance.
Hi,
You can overwrite in your adapter class the method canReorder and return false to all element in the first position.
@Override
public boolean canReorder(int position)
{
// if you have 3 columns
if ((position + 1) % 3 == 1)
return false;
else
return true;
}
Note: it's not tested! it's only an idea.
Hi,
Thank you so much. :)