Grid Auto Size in div

Hi,



I have the following xml. I have couple of issue.



1. in the column tag if i say allign=center then the data gets center alligned but the header is not center alligned, I want the data allign right and header align center.



2. I have the following div in to which the below grid is loding



I want the grid to auto size ie the hight should use the full div size if the data is less if the data is more it should size the div according.









<?xml version="1.0" encoding="UTF-8"?>





        

        Goal

        Commit

        Actual

        To Go

        

        #cspan

        Forecastable Funnel (stage 2 to 5)

        Total Funnel vs To Go

        #cspan

        

        Forecast Status

        #cspan

        Opportunity Stage

        #cspan

        #cspan

        #cspan

        #cspan

        

        

#rspan,#rspan,#rspan,#rspan,Goal,Commit,#rspan,Goal%,Commit%,Commit,Upside,1-Prospect,2-Qualification,3-Proposal,4-Agreement,5-Closing





        

         %

        

        



    

        Current Year

        12587

        9960

        981

        11606

        8979

        3445

        30%

        38%

        1882

        1563

        654

1042

1361

1028

14        

    

    

        

        

        

        

        

        

        

        

        

        

        

        16%

25%

33%

25%

0%        

    

    

        Previous Year

        9768

        8964

        686.7

        9081.3

        8277.3

        2928.25

        32%

        35%

        1599.7

        1328.55

        555.9

625.2

1156.85

715.6

11.9        

    

    

        

        

        

        

        

        

        

        

        

        

        

        18%

20%

38%

23%

0%        

    

    

        Delta

        2819

        996

        294.3

        2524.7

        701.7

        516.75

        -3%

        +3%

        282.3

        234.45

        98.1

416.8

204.15

308.4

2.1        

    

    





-------------



Thanks

Joe
  1. You can use 3rd parameter of setHeader() method. mygrid.setHeader(“A,B,C”,null,[“text-align:right;”,“text-align:left;”,“text-align:center”]);
    There is no way to set header alignment from xml
    2. You can use auto height mode. dhtmlx.com/dhxdocs/doku.php?id=d … autoheight