Hi Isomorphic
This is the complete code
GetCategoryds=GradeService.getFetchDS("getdata_details", null, { recordXPath:"//Table" });
function get_Dynamic_lg_summary_data()
{
GradeService.callOperation(
"Getnum", // operation name
{NumID:NumID,},
"//Table1", //XPath, Type, or ElementName to extract result
"getlistgridData(data)"// script to execute when operation returns
);
}
function getlistgridData(data)
{
dy_lg_header_data=data; //getting data for header localy
DynamicGridFields(data); //getting header
CreateDynamicGrid() //creating listgrid
//filling the data
listgrid1.fetchData({Class:Class});
}
function DynamicGridFields(data)
{
dy_lg_header.push({name:"StudentName", title:"Name", width:150 });
for (i=0; i<dylgheader_data.length; i++)
{
var x="C" +dylgheader_data[i].studID+i;
monname= getmonthname(dylgheader_data[i].DateDue);
getheader.push({name:x,align:"center", canEdit:true, editEvent:"click", modalEditing:true, width:50,title:getheader_data[i].Title});
}
function CreateDynamicGrid()
{
isc.ListGrid.create({ ID: "listgrid1",
top:"24%",
left:95,
headerHeight:40,
width:"87%",
height:"71%",
border:"0",
bodyBackgroundColor:"#808080",
canSort:false,
showSortArrow:"none",
showFilterEditor:false,
sortDirection:false,
autoDraw:true,
showAllRecords:true,
align:"center",
dataSource:Getrecords,
fields:getheader,
baseStyle: "myBoxedAlternateGridCell",
showHeader:true,
editEvent: "click",
canEdit: true,
editByCell: true,
autoSaveEdits:false,
});
editorExit:function(editCompletionEvent, record, newValue, rowNum, colNum)
{
//calling webservice for save edited data
}
return "listgrid1";
}
here I am showing how the dynamic listgrid has been created.Please gothrough carefully. Here I am abel to edit the listgrid cells randomly. The problem is, if I use Keyboard navigation after edit insted of an enter key, it gives an error “this.getOperation(_1) has no properties”. I think This is enough information required.(and also we are using webservices, backend Database which supports this).
thanks and regards
Eswar C