Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Muthu on Feb 24, 2009 04:26
open dhtmlx forum
Can I use splitAt & setColumnHidden in <afterinit >

Hi,
I want to acheive the Column split as well as Column hidden together. For that I am using XML like below.But, only column split works fine, Column hidden is not working.Please do the needful.

Below is the XML which I am using---
~~~~~~~~~~~~~~~~~~~~~~~
<?xml version="1.0" encoding="UTF-8"?>
<rows parent="0">
<head>
<column align="left" sort="str" type="ed" width="90"><font
style=font-family:Times Roman;font-size:10;>Store code</font></column>
<column align="left" sort="str" type="ed" width="75"><font
style=font-family:Times Roman;font-size:10;>Store Name</font></column>
<column align="right" sort="int" type="ed" width="75"><font
style=font-family:Times Roman;font-size:10;>Customer
Returns by Qty</font></column>
<column align="right" sort="int" type="ed" width="75"><font
style=font-family:Times Roman;font-size:10;>Customer
Returns by Qty LY</font></column>
<column align="right" sort="int" type="ed" width="75"><font
style=font-family:Times Roman;font-size:10;>Customer
Returns by Value</font></column>
<column align="right" sort="int" type="ed" width="75"><font
style=font-family:Times Roman;font-size:10;>Customer
Returns by Value LY</font></column>
<beforeInit>
<call command="attachHeader">
<param>TOTAL,,6\,058,,90\,132,</param>
<param>background-color:#fdffe3;font-size:9;height:20;font-weight:bold;color:#03449d;</param>
</call>
</beforeInit>
<afterInit>
<call command="enableColumnMove">
<param>true</param>
</call>
<call command="setColumnHidden">
<param>0</param>
<param>true</param>
</call>
<call command="splitAt">
<param>2</param>
<param>true</param>
</call>
</afterInit>
</head>
<row id="0_UK - 1" style="font-size:9;height:15">
<cell>UK - 1</cell>
<cell>High Wycombe GAME </cell>
<cell>300</cell>
<cell>0</cell>
<cell>4,928</cell>
<cell>0</cell>
</row>
<rows>
Answer posted by Support on Feb 24, 2009 10:13
In current version of grid, hiding columns left to split line not supported.
The issue already fixed in dev. code
You can 
 - wait till Feb. 26, when new version will be release
 - contact us directly at support@dhtmlx.com and provide your ref. number to receive update ASAP