Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by K Chan on Jun 23, 2009 08:45
open dhtmlx forum
Javascript Error on running grid methods from XML

I tried to run grid methods from XML as follows:

<rows>
    <head>
...
        <beforeInit>
            <call command="setEnableResizing">
                <param>false,false,false,false,false,false</param>
            </call>
            <call command="setColAlign">
                <param>left,center,left,right,left,left</param>
            </call>
        </beforeInit>
    </head>
...

Got Javascript error as follows:

dhtmlxgrid.js: Line 483
this[arr[i].getAttribute("command")] is undefined

I'm using dhtmlxgrid.js v.2.1 build 90316, professional edition, and Firefox 3.

Am I missing something?

Thanks in advance for your help.

Answer posted by dhxSupport on Jun 23, 2009 09:01
There is no such method setEnableResizing. You should chage it to enableResizing
Answer posted by K Chan on Jun 23, 2009 09:05
Thanks!  I knew it is something very obvious.  Thanks for the quick response.