In my Web App i'm using the Print Widget, with a couple of custom print layouts. Each of these layout contains a grid, but since the grid intervals are predefined in the MXD file, the grid on the print outputs often doesn't make sense. On larger scales the entire map is between two of the grid lines (which means the grid is not visible at all) and on smaller scales the lines are too dense.
Since I don't know of any way to dynamically modify the grid properties, is there any way to change the available map layouts based on the current map scale? If that's possible, I can create many layouts for different scales.