Login Register

position

Position of programmatically created grid, cell header position.

Hi. I am creating a grid programmatically, and I have the following problems:

* I can't get the grid to position where I want unless I use a BorderContainer to put the grid in.
* Cell headers are printed over the first row of data in the grid
* Tundra CSS theme seems not to be working.

Why do I need BorderContainer? How do I fix the cell headers? How do get the tundra theme to work?

Full working code example (Sorry for long post, i cut the file into blocks for highlighting).

Keeping a Dialog Centered

I was just extending the dialog for a custom widget and noticed that if I resized my browser window the dialog no longer remains in the central position in the browser window (something it used to do).

postCreate: function(){
                dojo.body().appendChild(this.domNode);
                this.inherited("postCreate",arguments);
                this.domNode.style.display="none";
                this.connect(this, "onExecute", "hide");
                this.connect(this, "onCancel", "hide");
                this.connect(window,'onresize',"_position");
        },

Dialog Box not center screen

Hey all,

I am using dojo toolkit 9.0 and I have a registration form in a dialog box which works fine, however when the dialog box appears it doesn't display in the center of the screen. Instead it is loaded on the bottom right of the page. How can I change the position of a dialog box? All I want it to do is load (top, center)

<--script-->
function load() {
dijit.byId('registershow').show();
}
<--/script-->
<--body onload="load();"-->
<--div dojoType="dijit.Dialog" id="registershow" title="OpenOffer Registration Form"-->
...form code...
<--/div-->

Thanks
D

Position Dialog relative to a node

How do i create a Dialog box and position it relative to an existing element/node?
I want to do it in the code (shown below), as against using tags. In the sample code below, i would like to open the Dialog right below the link to "New".
I am only able to get the dialog box come up in the dead center of the page.
Thanks.

Version: Dojo 1.0
Usage:

function addNew() {
    dijit.byId('addDlg').show();
}

New

Syndicate content