Hi,
Grid Serialization Performance Issue:-
I have grid loaded with more than 3000 records. Each row have checkbox controls. I checked minimum 100 record and click on ‘submit’ button.
Oncheck control:-
mygrid.attachEvent(“onCheck”, function (rId, cInd, state) {
var colNum = mygrid.getColumnCount();
for (i = 0; i < colNum; i++) {
colLabel = mygrid.getColLabel(i);
if (colLabel == “”) {
var selectColNum = i;
}
}
var count = mygrid.getCheckedRows(selectColNum);
if (count != “”) {
if (count.split(’,’).length == mygrid.getRowsNum()) {
$("#gridbox input:checkbox").attr(‘checked’, ‘checked’);
}
else {
$("#gridbox input:checkbox").removeAttr(‘checked’);
}
}
else {
if (count == “” && mygrid.getRowsNum() == 1) {
$("#gridbox input:checkbox").removeAttr(‘checked’);
}
}
});
}
Click On Submit Button:
function GridToXml() {
//count how many colums were submited from GRID
var colNum = mygrid.getColumnCount();
//check which colum was selected
for (i = 0; i < colNum; i++) {
colLabel = mygrid.getColLabel(i); //Header Name Loaded ,More than 135 Names
// Delete header label is = “”
if (colLabel == “”) {
var selectColNum = i;
var myXmlStr = mygrid.serialize();
alert(‘myXmlStr’+myXmlStr);
}
}
var values =
{
"ID": selectColNum,
"Xml": escape(myXmlStr)
}
alert('values'+values);
return values;
}
My Issue is after i passing the ‘values’ i got xml format error.
But minimum record is possible to passing the values.