Footer

hi.



I have problems using atachFooter

    mygrid1 = new dhtmlXGridObject(‘gridbox1’);

    mygrid1.setImagePath(“dhtmlxgrid/imgs/”);

    mygrid1.setHeader(“Cuentas”);

    mygrid1.setInitWidths(“250”)

    mygrid1.setColAlign(“left”)

    mygrid1.setColTypes(“ro”);

    mygrid1.setColSorting(“int”)

mygrid1.enableDragAndDrop(true);

    mygrid1.attachHeader ([ “Agregar cuentas”]);

    //mygrid1.attachFooter ([ “Agregar cuentas”]); <<-- before init () is a gray line and the grid does not load

    mygrid1.init();

    mygrid1.setSkin(“light”)

    mygrid1.loadXML(“xmldatos_cuentas_seleccion.xml”);

    mygrid1.submitOnlyChanged(false);

//mygrid1.attachFooter ([ “Agregar cuentas”]); <<–after init () and load () load the grid but do not see the footer and the second grid does not load



please help …





thanks


To execute some code after grid was loaded you have to use 2nd parameter of loadXML method:


mygrid1.loadXML(“xmldatos_cuentas_seleccion.xml”,function(){


mygrid1.attachFooter ([ “Agregar cuentas”]);


});


mygrid1.submitOnlyChanged(false);