netBox has no properties

hello.



i have an error when use TreeGrid loaddate from XML; the function dhtmlXGridObject(id) throws an exception with the message "

entBox has no properties " .

this function in dhtmlxgrid.js, error at line : this.entBox.className += " gridbox";



why it says that it doesnt have properties?. how can i fix that error?



Thanks.



HTML script:

























XML:

<?xml version="1.0"?>



    

        Total

        0

        11.00

        185.48

        

            Music

            0

            5.00

            58.80

            

                Whatever People Say I Am, That’s What I Am Not

                9.78

                1

                9.78

            

            

                Back to Bedlam

                13.28

                1

                13.28

            

            

                Prince

                10.48

                1

                10.48

            

            

                Dreaming Wide Awake

                11.98

                1

                11.98

            

            

                On an Island

                13.28

                1

                13.28

            

        

        

            DVD

            0

            6.00

            126.68

            

                Harry Potter and the Goblet of Fire

                24.78

                1

                24.78

            

            

                Jarhead

                20.98

                1

                20.98

            

            

                Hogan’s Heroes - The Complete Third Season

                27.98

                1

                27.98

            

            

                Prime

                20.98

                1

                20.98

            

            

                The Shaggy Dog

                15.98

                2

                31.96

            

        

    





The problem occurs when you are using not existing element as parameter of constructor.
>>mygrid = new dhtmlXGridObject(‘gridbox’);
Be sure that object with such ID as “gridbox” is really exists on the page, and it is already rendered on moment of script call.