beta 2.5 - grid doesn't show

hello,

I’m tryng out the beta version (pro) and I’m having problems loading a grid. xml is correct, it gives no error, headers are loaded fine (from xml) but I just can’t see any data. There is another grid in the layout that loads fine, I can see it and it’s perfect.

On the last (2.1?) version it was working fine.

basically I load a tabbar, clicking on the tab it loads a layout, and in cells of the layout I load grids/treegrids.

    var mygrid = layout.cells(cell).attachGrid();

//    mygrid.attachEvent(“onEditCell”, …

    mygrid.imgURL = “/dhtmlxbeta/imgs/”;

//    mygrid.enableHeaderMenu();

//    mygrid.enableContextMenu(menu)

    mygrid.enableDragAndDrop(true);

//    LoadSearch(mygrid,table);

    mygrid.init();

    mygrid.setSkin(“light”);

//    mygrid.enableSmartRendering(true,50);

    mygrid.kidsXmlFile = “/xml/treegrid.exml?table=”+table+’&tipo=’+tipo+"&coltree="+nt[1]+"&tabtree="+nt[2];

    mygrid.loadXML("/xml/treegrid.exml?table="+table+’&tipo=’+tipo+"&coltree="+nt[1]+"&tabtree="+nt[2],function(){

        //        for (var i=1; i<mygrid.getColumnsNum(); i++)mygrid.adjustColumnSize(i);

        //     mygrid.groupBy(2);

    });







example xml file is:





node

label

note

id_wisi





00001

Text



5





00003

Date











I give you also an example of the other grid that is rendered just fine



js —

    propgridDef = accCb.attachGrid();

    //    propgridDef.setSkin(“light”);

    propgridDef.attachEvent(“onEditCell”,doOnCellEditPropDef);

    propgridDef.attachEvent(“onEnter”,doOnEnterPropDef);

    propgridDef.imgURL = “/dhtmlxbeta/imgs/”;

    propgridDef.setSkin(“light”);

    //    mygrid.init();

    propgridDef.id = table+’-P’

    propgridDef.loadXML("/xml/propertiesDef.exml?table=Properties&source="+table);



xml —

<?xml version="1.0" ?>





property

value

options

MVC

M

V

C



note



datatypetextvarchar,number,memo,date,memoMdhtmlxtxtgino,pino,caio,sempronioVformatVheightVlength20VoptionsMpostfixVprefixVregexpCtestaldo121,3,12Mdigitestaldo1AA,b,cMvalidate functionCvalue maxVvalue minVdfasdfwidthV





I’ve tried them all … help please



You have issue in the xml file. Please replaced
Date

with
Date