Grid and XML Configuration

I have a question regarding the grid.



Can I loadfromxmlstring like the toolbar?



I keep getting “window.getComputedStyle(this.entBox, null) is null” error on initialisation. Any ideas?



Cheers





Scott.

Yes, you can load grid form xml string. Please see more information here dhtmlx.com/docs/products/dhtmlxG … oadingdata

>>I keep getting “window.getComputedStyle(this.entBox, null) is null” error on initialisation.
dhtmlxGrid and dhtmlxWindow havent method getComputedStyle. Such issue may occur if this.entBox is not defined.

It appears that entbox is undefined but I am unsure as to what I have done wrong.

All I am calling is:

grd = new dhtmlXGridObject(“gridResults”);


and the div object gridResults exists.

Could you please send us sample where we can reproduce this issue?

I have managed to fix the entbox issue but I have a question regarding loding xml.  Is it only data that can be loaded IE no tags when doing a grid.parse().  The reason being, the following xml is being rejected as bad xml:


   
     
       
          ‘light’
       
       
          ‘…/imgs/dhxgrid/’
       
       
          true
       
       
          ‘onRowDblClicked’
          viewCase
       
       
          true
          ‘test’
       
     
      App Number
      filingdate
      title
      status
      name
      address1
      address2
      town
      country
      postcode
      email
      updated
      updatedby
   
   
      GB12345678.00
      2008-01-01T00:00:00
      some title text
      Added to DAS Managment
      Scott Thomas
      123
      Squirrel wood road
      newport
      wales
      np12 3fv
      scott.thomas@IPO.gov.uk
      Scott Thomasd
      2009-05-01T00:00:00
   
   
      GB12345679.00
      2008-01-01T00:00:00
      some title text
      Added to DAS Managment
      Scott Thomas
      123
      Squirrel wood road
      newport
      wales
      np12 3fv
      scott.thomas@IPO.gov.uk
      Scott Thomasd
      2009-05-01T00:00:00
   
 

You loading grid not from the standart format. To load grid from custom format you shuld specify which tag will be used as cell. Please see more information here dhtmlx.com/docs/products/dhtmlxG … tloadtypes