Categories | Question details Back To List | ||
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</call>\n"; String initparam = "\t\t\t\t<param>"; String endparam = "</param>\n"; String split = initcall1 + "splitAt" + initcall2; String paramsplit = split + initparam + "2" + endparam + endcall; xml.append(paramsplit); The resulting xml code is: <call command="splitAt"> <param>2</param></call> Please, anybody can help me??? PS: attachFooter code is below than split code and both are between <afterinit></afterinit> tags. PS2: sorry about my awful English Thanks in advance Answer posted by Support on Sep 12, 2008 05:13 >>PS: attachFooter code is below than split code and both are between <afterinit></afterinit> 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 Answer posted by Fernando Siles on Sep 15, 2008 03:12 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"?> <rows>I have to say that this code is generated dynamically (number of columns is variable) from a excution to another one. Thanks in advance. Answer posted by Support on Sep 15, 2008 09:06 By you split by 2 first column the 3rd cell of the footer should not contain #cspan. The xml can contain the following: <call command="attachFooter"> <param><![CDATA[Resultado de ingresos - gastos por periodo:,#cspan, ,#cspan,#cspan,#cspan,#cspan,<div id='p0'></div>, <div id='p1'></div>,<div id='p2'></div>,<div id='p3'></div>,<div id='p4'></div>,<div id='p5'></div>,<div id='p6'></div>, <div id='p7'></div>,<div id='p8'></div>,<div id='p9'></div>,<div id='p10'></div>,<div id='p11'></div>,<div id='p12'></div>, <div id='p13'></div>,<div id='p14'></div>,<div id='p15'></div>,<div id='p16'></div>,<div id='p17'></div>,<div id='p18'></div>, <div id='p19'></div>,<div id='p20'></div>,<div id='p21'></div>,<div id='p22'></div>,<div id='p23'></div>,<div id='p24'></div>, <div id='p25'></div>,<div id='p26'></div>,<div id='p27'></div>,<div id='p28'></div>,<div id='p29'></div>]]></param> </call> Answer posted by Fernando Siles on Sep 16, 2008 03:16 Sorry but the result is the same as using #cspan. I think I am in a dead point :( Thanks for your help. Answer posted by Support on Sep 18, 2008 02:23 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. |