hi ,
I have a problem when i am trying to save the data in the listgrid with more than 45 records.
I am using datasource which is getting records from the database.
i have a listgrid with properties as below
isc.ListGrid.create({
ID: "listSample",
autoDraw: true,
autoFetchData: false,
height:300,
showAllRecords:true,
headerHeight: 40,
border:"0px solid #ffffff",
dataSource: listSampleDS,
canEdit: true,
canSort: true,
editEvent: "click",
editByCell: true,
canReorderFields: false,
canResizeFields: false,
modalEditing:true,
autoSaveEdits:false,
editPendingBaseStyle: "myBoxedGridCellEdited",
showRollOver:false,
showSortArrow: false,
leaveScrollbarGap: false,
saveByCell:false,
confirmDiscardEdits:false,
arrowKeyAction:"select",
showHeaderContextMenu:false,
baseStyle: "myBoxedGridCell",
wrapCells:true,
fields: [
{name:"name", title:"name", canEdit:true, canSort: false, wrap: true, width: 100, align: "center", cellAlign: "right"},
{name:"score1", title:"score1", canEdit:"true", canSort: false, wrap : true, width : 100, align: "center", cellAlign: "right"},
{name:"score2", title:"score2", canEdit:"true", canSort: false, wrap : true, width : 100, align: "center", cellAlign: "right},
{name:"score3", title:"score3", canEdit: true, canSort: false, wrap: true, width: 100, align: "center", cellAlign: "right"}
]});
I have a button on click of which i am getting the values from the listgrid and passing them to the server.
code on click of the button is given below
var maxRows = listSample.getTotalRows();
var scoreOne = new Array();
for(var iCount = 0; iCount < maxRows; iCount++)
{
updatedRecord = listSample.getEditedRecord(iCount);
scoreOne [iCount ] = updatedRecord.score1;
}
listSample.updateData(objRecord,null,{params:{Score:scoreOne}});
The value of score1 is getting passed correctly when the number of records is less than 45.
when i have more than 45 records the score1 values are going as “undenfined” from the screen.
For example if there 53 records in the listgrid , for the first 10 records value is passed as “undefined” and for the remaining records correct values are getting passed.
what might be the cause for these wrong values .
Please help me to solve this issue.