Link to home
Start Free TrialLog in
Avatar of cwatkins
cwatkins

asked on

How to disable scrollbars (vertical and horizontal)?

I am new to Dojo 1.2.
 I am able to use the DataGrid for displaying contents of an array.
How can I turn off the scrollbars (horizontal and vertical)?
In other words, the scrollbars should display when there are 20 or more rows being displayed?


A snippet of my markup is as follows:
 
<div dojoType="dijit.layout.ContentPane" region="center">
     <div dojoType="dojox.grid.DataGrid" id="_grid"
          elasticView="1" query="{id: '*'}"
          rowsPerPage="20" store="mydatastore"
          structure="mygridlayout" rowSelector="0px">
    </div>
</div>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of justinbillig
justinbillig

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cwatkins
cwatkins

ASKER

Create the Grid within an addOnLoad function, the rows rendered to the expected size. Calling the sizeChange() method forced the Grid to recalculate the size.

var grid = new dojox.Grid({autoHeight:true,id: "gridCardDef",model: model, structure: layout},dojo.byId("grid"));      
grid.sizeChange();