Categories | Question details Back To List | ||
Config from xml: colspan multirow I hava an xml that is created serverside and I am trying to add the headers from the xml as well but I can't get it to work. When loading this xml into the grid it sets the headers but only the first row is loaded and not its child rows. If I remove the head tag and set the headers in the javascript with setHeader it works just fine. I have other grids that are not "multirows" (no child rows to a row) and they are loaded correctly. Greatful for any help since this is driving me insane. <rows> <head> <column type="ro" width="25" sort="img" align="center"></column> <column type="ro" width="*" sort="tree" align="left">User</column> <column type="ch" width="60" sort="str" align="center">Admin</column> <column type="ch" width="90" sort="str" align="center">File comp</column> <column type="ch" width="80" sort="str" align="center">Report</column> <column type="ch" width="80" sort="str" align="center">File</column> <column type="ch" width="80" sort="str" align="center">File</column> </head> <userdata name="companyid">4364</userdata> <row id="1" selected="true" open="1"> <userdata name="userid">2</userdata> <cell>images/user-remove.png</cell> <cell image="16.png">est@test.com</cell> <cell typeid="2" permissionid="976">1</cell> <cell typeid="5" permissionid="978">1</cell> <row id="1.1"> <userdata name="contractid">782</userdata> <cell /> <cell image="16.png" colspan="3">Bas</cell> <cell>Empty colspan cell</cell> <cell>Empty colspan cell</cell> <cell typeid="1" permissionid="-1">0</cell> <cell typeid="3" permissionid="979">1</cell> <cell typeid="4" permissionid="980">1</cell> </row> <row id="1.2"> <userdata name="contractid">1642</userdata> <cell /> <cell image="16.png" colspan="3">TS</cell> <cell>Empty colspan cell</cell> <cell>Empty colspan cell</cell> <cell typeid="1" permissionid="981">1</cell> <cell typeid="3" permissionid="-1">0</cell> <cell typeid="4" permissionid="-1">0</cell> </row> </row> </rows> Answer posted by Support on Oct 07, 2008 02:40 You have incorrect values of type attribute, they must be <column type="img" width="25" align="center"></column> <column type="tree" width="*" align="left">User</column> |