isc.TreeGrid.create({
ID: "SafetyRulesTree",
autoDraw:false,
dataSource: "SafetyRules",
autoFetchData: false,
leaveScrollbarGap: false,
alternateRecordStyles: true,
nodeClick: "frmSafetyRule.editRecord(node);",
nodeContextClick: function ()
{return customNodeMenu.showContextMenu();
},
loadDataOnDemand:false
Dynamic Form:
isc.DynamicForm.create({
ID: "frmSafetyRule",
dataSource: "SafetyRules",
width:300,
autoDraw:false,
numCols: 2,
colWidths: ["47%", "*"],
fields:[
{name: "relation", title: "Rule #", type: "text", width: 100, canEdit: false},
{name: "name", title: "Rule Title", type: "text", width: 500},
{name: "description", title: "Rule Desription", type: "text", width: 500, height: 400, length: 500}
]
});
Button:
btnSave = isc.IButton.create({
name: "Save",
title: "Save Rule",
type: "button",
click:function ()
{
if (frmSafetyRule.valuesHaveChanged())
frmSafetyRule.saveData();
});
I am using above to modify and save TreeGrid data.
When I click on a push button then (after a while) Browser says that script is taking too long and if I want to stop it.
What is a design pattern of saving TreeGrid data?
Thanks