,,#rspan,#rspan,#rspan”);
//set title filter field
document.getElementById(“title_flt”).appendChild(document.getElementById(“title_flt_box”).childNodes[0])
//set author filter field
var authFlt = document.getElementById(“author_flt”).appendChild(document.getElementById(“author_flt_box”).childNodes[0]);
populateSelectWithAuthors(authFlt);
//block sorting and resize actions for second row
mygrid.hdr.rows[2].onmousedown=mygrid.hdr.rows[2].onclick=function(e){(e||event).cancelBubble=true;}
mygrid.setSizes();
});
When I try to export to PDF it generate
“C:\AppServ\www\dhtmlxGrid\server\gridPdfGenerator.php at 170 : Undefined offset: 1”
message. Without having the Filter coding it works fine.
It looks like you have too much #cspan elements in line:
mygrid.attachEvent("onXLE", function() { mygrid.attachFooter("Βρέθηκαν "+mygrid.getRowsNum()+" εγγραφές που ικανοποιούν τα κριτήρια που θέσατε,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan", ["text-align: left;"]); });
Try to remove two or three such elements, this might help you.
As I remove the #cspan from the footer the error remains, lowering the offset.
The point of the many #cspan is that the complete message should appear in a single line. This message states the number of records returned from the database. If you can point me on how to include that in the navigation (e.g. it now says “records 1 to 20”, to change it to "records 1 to 20 from 250) I can do without the footer.
But even if I comment out the footer the error does not go away:
C:\Inetpub\extras\shoah\resources\dhtmlx\ext\exportpdf\gridPdfWrapper.php at 141 : Undefined offset: 0