Try this instead: function beforeInit(sender, config) { sender.defaults = { tdAttrs: { style: 'padding: 10px;' } } }