Auto height in dojo grid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gaya3
    New Member
    • Aug 2007
    • 184

    Auto height in dojo grid

    How do i set autoHeight dynamically in dojo grid 1.1?
    please do help... Thanks in Advance
  • Rsmastermind
    New Member
    • Sep 2008
    • 93

    #2
    Hi friend here is the solution for your problem

    If the grid is inside some div tag that what you can do is just increase the div height and then resize the dojogrid.

    Like this in the code.
    Code:
    function changeHeight() {
        document.getElementById("div Id in which the dojo grid is there").style.height = "your desire height";
        dijit.byId('Id of the dojo grid').resize();
    }
    Hope this will work fine for you

    Comment

    • gaya3
      New Member
      • Aug 2007
      • 184

      #3
      AutoHeight in dojox.grid 1.1

      Hi ,
      I'm creating dojo grid as follows. I need to set the specific height for the height. But i'm not able to do so. Only auto height is able to set. Even I'm not able to create the grid with the autoheight property.pl help me out..Thanks in Advance.
      Code:
        var subGridProps = {
      	    structure: subGridCells,
      	   rowCount: 2,
      	   height:'100px', --------------------------> not working
      	   //autoHeight: true, ----------------------> it works fine
      	 autoRender: false
                       model:subGridModel
         };
      subGrid = new dojox.Grid(subGridProps);

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Threads merged. Please do not double post your questions.

        Moderator.

        Comment

        Working...