Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Steve on Sep 16, 2009 16:51
open dhtmlx forum
splitAt hiding columns

Using build 81107, when using the splitAt(1) command, the first column is hidden.

xml

<?xml version="1.0" encoding="UTF-8"?>
<rows>
  <head>
    <column width="30" type="cntr" sort="na" align="center">img:[rsc/images/img/excel.gif]</column>
  <column width="150" type="ro" sort="str" align="left">Username</column>
  <column width="150" type="ro" sort="str" align="left">First Name</column>
  <column width="150" type="ro" sort="str" align="left">Last Name</column>
  <column width="150" type="ro" sort="str" align="left">Affiliation</column>
  <column width="100" type="ro" sort="str" align="left">Phone</column>
  <column width="100" type="ro" sort="str" align="left">Phone</column>
  <column width="500" type="ro" sort="str" align="left">Email</column>
  <afterInit>
    <call command="splitAt"><param>1</param></call>
  </afterInit>
  </head>
  <row id="2408861">
    <cell> </cell>
  <cell>myusername</cell>
  <cell>firstname</cell>
  <cell>lastname</cell>
  <cell>company</cell>
  <cell> </cell>
  <cell> </cell>
  <cell>yemail@system.com</cell>
  </row>
</rows>

the Script:

mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("/rsc/codebase2/imgs/");
mygrid.setSkin("myskin");
mygrid.setColumnColor("#D6D6D6");
mygrid.preventIECaching(true);
mygrid.loadXML("rpc/RPC.po?call=RPC&pageaction=searchNewUsers");
mygrid.enableRowsHover(true,'grid_hover');

When I use the above xml with a file for testing, all works well.  But when I get the return from my server the first field is hidden when using the splitAt(1).

Any suggestions on what might cause the problem.  I've tested with IE6 and IE8.

 

 

Answer posted by dhxSupport on Sep 17, 2009 05:22
Please find rules of using splitAt() functionality here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:split_mode&s[]=splitat
Please note that a lot of splitAt() issues was fixed 81107 build. Please conatact sales@dhtmlx.com to update your files.