This uses the relatively new Chrome only addition to canvas from the canvas v5 specification - dotted and dashed lines with HTML5 canvas. As browsers add support you will be able to use the option in them too but currently (May 2013) it's only supported in Chrome.
obj.Set('background.grid.dashed', true); obj.Set('background.grid.dotted', true);