Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Debamita on Dec 24, 2008 02:10
open dhtmlx forum
TreeGrid

If i have one parent row in the TreeGrid the plus sign doesnt show up. The minus signs are displayed once expanded.
But it works fine if there are multiple rows.
Answer posted by Support on Dec 24, 2008 02:41
Problem can't be reconstructed locally ( working sample sent by email ) 

If issue still occurs for you - please provide any kind of sample where issue can be reconstructed.
Answer posted by Debamita on Dec 24, 2008 03:13

Below is the code that i have used to construct the tree

XML string is below

<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<rows parent=\"a\">
 <row id=\"1\">
  <cell><![CDATA[0000 - ABC]]></cell>
  <cell><![CDATA[30]]></cell>
  <cell><![CDATA[32]]></cell>
  <cell><![CDATA[$24,962.62]]></cell>
 <row id=\"2\">
  <cell><![CDATA[13200]]></cell>
  <cell><![CDATA[3]]></cell>
  <cell><![CDATA[3]]></cell>
  <cell><![CDATA[$720.45]]></cell>
 </row>
 <row id=\"3\">
  <cell><![CDATA[71000]]></cell>
  <cell><![CDATA[2]]></cell>
  <cell><![CDATA[2]]></cell>
  <cell><![CDATA[$600.00]]></cell>
 </row>
 </row>
</rows>

function doMTDTreeGrid(){

        mtdTreeGrid = new dhtmlXGridObject("treeGrid");

                  mtdTreeGrid.selMultiRows = true;

                  mtdTreeGrid.setImagePath("/codebase/imgs/icons_greenfolders/");

                  mtdTreeGrid.setHeader("Header1,Header2,Header3,Header4");

                  mtdTreeGrid.setInitWidths("*,*,*,*");

                  mtdTreeGrid.setColAlign("left,right,right,right");

                  mtdTreeGrid.setColTypes("tree,ro,ro,ro");

                  mtdTreeGrid.enableTreeCellEdit(false);

                  mtdTreeGrid.setSkin("light");

                  mtdTreeGrid.enableTreeGridLines();

                  mtdTreeGrid.init();

                  mtdTreeGrid.loadXMLString(mtdXml);

      }

 

Answer posted by Support on Dec 24, 2008 05:38
Except of "<rows parent=\"a\">" which need to be <rows parent=\"0\"> all other is correct
The same code works correctly in local samples. 


Which version of dhtmlxtreegrid you are using?