Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pepys on Jun 23, 2009 05:15
open dhtmlx forum
:: pepysDHTMLX ::

Can I declare the columns sintax of a subgrid using XML:

    $strXML .= "<head>";
    
        $strXML .= "<column type='ro' width='500' id='nume'>Produs</column>";
        $strXML .= "<column type='ro' width='70' id='nume' align='center'>Cantitate</column>";
        $strXML .= "<column type='ro' width='70' id='nume' align='right'>Pret</column>";
    
    
    $strXML .= "</head>";


or I can just to write

//        subgrid.setHeader("Produs, Cantitate, Valoare");
//        subgrid.setInitWidths("480,70,60");
//        subgrid.setColAlign("left,center,right");
//        subgrid.setColTypes("ro,ro,ro");
//        subgrid.setColSorting("str,str,str");


I want to use XML.
Answer posted by dhxSupport on Jun 23, 2009 09:25
You can configure sub grid in both ways.