Friday, May 21, 2010

Assign dojo Dialog box size dynamically in the Javascript

If you define the dialog in the HTML page like this :

mydialog" dojoAttachPoint="mydialog" title="My Dialog">

You can dynamically assign  Dialog box size dynamically in the Javascript like this :


this.mydialog.attr('style', "width:750px; height:500px");
or
dijit.byId("mydialog").attr('style', "width:750px; height:500px");

No comments:

Post a Comment