Split doesn't work with attachFooter in TreeGrid

Hello friends,



I want to add a split to my treegrid (to look like a excell sheet xD) and it doesn’t work when I add a footer.



Code is as follows:



String initcall1 = “\t\t\t<call command=”";

String initcall2 = “”>\n";

String endcall = “\t\t\t\n”;

String initparam = “\t\t\t\t”;

String endparam = “\n”;



String split = initcall1 + “splitAt” + initcall2;

String paramsplit = split + initparam + “2” + endparam + endcall;

xml.append(paramsplit);



The resulting xml code is:





2



Please, anybody can help me???



PS: attachFooter code is below than split code and both are between tags.



PS2: sorry about my awful English



Thanks in advance

PS: attachFooter code is below than split code and both are between tags.
Move attachFooter above splitAt, or even in beforeInit section
The structure of grid ( such as headers | footers ) must be defined before splitAt executed

If issue still occurs for you - please provide the snippet of XML generated by your code, with both splitAt and attachFooter commands

Hi,

Thanks for your answer but neither of these actions solve my problem.

Here is the snippet of XML code you ask for me:

<?xml version="1.0" encoding="ISO-8859-1"?>


 
 
#rspan,#rspan,Lineal,Manual,Const.,#rspan,#rspan,P0,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,
P17,P18,P19,P20,P21,P22,P23,P24,P25,P26,P27,P28,P29


 

2

<![CDATA[Resultado de ingresos - gastos por periodo:,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
]]>

I have to say that this code is generated dynamically (number of columns is variable) from a excution to another one.

Thanks in advance.

By you split by 2 first column the 3rd cell of the footer should not contain #cspan.

The xml can contain the following:


<![CDATA[Resultado de ingresos - gastos por periodo:,#cspan, ,#cspan,#cspan,#cspan,#cspan,

,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
]]>


Sorry but the result is the same as using #cspan.

I think I am in a dead point :frowning:

Thanks for your help.

The issue was not reconstructed locally.
We have sent the sample by e-mail. If problem persists, please, contact directly at the support@dhtmlx.com and provide any sample where the issue can be recreated.