Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stephen Neander on Oct 23, 2009 02:54
open dhtmlx forum
AttachFooter not working

Licence # 300131815 Pro version.

The following works fine:
gridsChild[tab_id].setHeader(paramsChild['tabs'][tab_id]['grid']['header']['row_1']);

This doesn't:
gridsChild[tab_id].attachFooter(paramsChild['tabs'][tab_id]['grid'][footer]['row_1']);

It did work at first but now throws the following error:
Index or size is negative or greater than the allowed amount" code: "1
http://10.1.1.11/jobtracker_dev/js/dhtmlx/codebase/dhtmlxgrid.js Line 597

paramsChild['tabs'][tab_id]['grid'][footer]['row_1']
contains
#cspan,#cspan#cspan,Total ex GST,${#stat_total}

Column widths are 0,75,*,75,75,75

Otherwise the grid display perfectly.

Answer posted by Stanislav (support) on Oct 23, 2009 05:08
>>#cspan,#cspan#cspan,Total ex GST,${#stat_total}
The correct value is
 ,#cspan#cspan,Total ex GST,${#stat_total}
The first column in spanned group must have some non-marker value
Answer posted on Oct 23, 2009 10:28

Unfortunatley this didn't work.

There are 6 columns. The first one has a width of 0.

I tried

,#cspan,#cspan,#cspan,Total ex GST,${#stat_total}

and

,,#cspan#cspan,Total ex GST,${#stat_total}

 

Still get the same error. I know it is something I have done because it did work before.
Does the error returned provide any clues to you?