The best way to add style to your buttons. In particular, margin-rightor margin-leftvalues:
buttons: [
{ text: "Save", click: function () { alert("save"); }, style:"margin-right:40px;" },
{ text: "Cancel", click: function () { alert("close"); ;}, style:"margin-left:0px;" }
]
Feel free to play with this fiddle .
margin-left, margin-right, .
, id , .