- printview work fine if i load the grid and then call printview, but if after load I’ll run addrow(…) to it, the row will be added to the grid but on the printview the last added row will print twice? how to fix it
2. if i use acheck as column type on output it will be 0 or 1 should I parse html manually or there is a fix for it?
the last added row will print twice? how to fix it
- be sure that you are using correct ID value for new row
- if issue still occurs - please provide a code snippet, which you are using for row adding
">
<?php
usleep(500000);
header("Content-type:text/xml");
print('<?xml version="1.0" encoding="UTF-8"?>');
print ("");
print('');
$head=explode(",","Part Type,QTY,Total,Price");
$size=explode(",","100,50,50,60");
$colType=explode(",","link,ed,ed,price");
$sorting=explode(",","na,na,na,na,na");
$i=0;
while ($i<4){
print(''.$head[$i].' ');
print('');
$i++;
}
print('');
//**********************
print("");
?>
Row is being added to the grid without any errors or isues, I can work with it, if I enable the processor it works fine, but on the print is where it doubles, code is only for adding one row but it still produces double on the print, in my code I use phpfiles to pull data from the db so it’s a bit more complicated, though when I add more and more rows last rows are being duplicated on the print but on the display it is fine: output is like this
row1
row2
row3
row4
row5
row3
row4
row5
or
row1
row1
or
row1
row2
row2
>> addOutPart(1,1,1,1,100)
It seems that you use the same id for all rows. Ids must be unique.
i use unique ids, i just simplified the code, u can put
addOutPart(OutPartsGrid.getRowsNum()+1,1,1,1,100)
if I would not use unique id it would not let me add it to the grid.
the problem is when I get printview html code i got row doubled
i use unique ids, i just simplified the code, even if I put
addOutPart(OutPartsGrid.getRowsNum()+1,1,1,1,100)
if I would not use unique id it would not let me add it to the grid.
the problem is when I get printview html code i got row doubled, even if there is only one row