Hi,
I would like to update the footer of my dhtmlxgrid from ajax after certain input has taken place.
What is the best way to do this? Is it possible to replace the entire footer in one call?
Best regards,
Jeroen
Hi,
I would like to update the footer of my dhtmlxgrid from ajax after certain input has taken place.
What is the best way to do this? Is it possible to replace the entire footer in one call?
Best regards,
Jeroen
Hi,
Thanks for your reply!
When I try this example I get a javascript error “i is undefined”:
mygrid.setFooterLabel(1,‘New Label’);
I am using the dhtmlxgrid_pro.js file? Can you give me a pointer where to look?
Best regards,
Jeroen
Unfortunately the issue cannot be reconstructed locally.
The method works well for us.
If issue still occurs - please, provide any kind of sample of your code to reconstruct the issue.
Hi,
This is the script:
[code]
[/code]And this is the “test.xml” I load:
[code]
Code Naam Discipline Plaats Saldo uren PL CW TL 28 29 30 31<!-- events -->
<beforeInit/>
<afterInit>
<call command="attachFooter">
<param>Available,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,0,0,0,0,0</param>
</call>
<call command="splitAt">
<param>8</param>
</call>
</afterInit>
?
test
test
test
test
300
AvD
PH
FF
0
0
0
0
0
[/code]
When I don’t use the XML for configuring the grid setFooterLabel works well. As soon as I start using XML the error message appears. I just cannot find what’s wrong…
Best regards,
Jeroen
Please, try to call setFooterLabel() when the data is loaded to the grid:
mygrid.loadXML("test.xml",function(){
mygrid.setFooterLabel(1,'New Label');
});
Thanks!