Hello Sir
I am using Smart Client V10.0 for my project. I have been stuck in a phase where I need to make all rows un editable except one which I select through the checkbox. I have pasted the code below. I will really appreciate if you can give me a helping hand in this.
Code:
departments: isc.ListGrid.create({
ID: "departmentsID",
width: 550,
height: 150,
canEdit: true,
editEvent: "click",
modalEditing: true,
selectionType: "single",
alternateRecordStyles: true,
showEmptyMessage: false,
selectionAppearance: "checkbox",
fields: [
{name: "description", type: "text", canEdit: false},
{name: "view", type: "boolean", width: 70,
changed: function(form, item, value) {
if (value == false) {
departmentsID.setEditValue(item.rowNum, 2, false);
departmentsID.setEditValue(item.rowNum, 3, false);
}
}
},
{name: "copy", type: "boolean", width: 70,
changed: function(form, item, value) {
if (value == true)
departmentsID.setEditValue(item.rowNum, 1, true);
}
},
{name: "edit", type: "boolean", width: 70,
changed: function(form, item, value) {
if (value == true)
departmentsID.setEditValue(item.rowNum, 1, true);
}
}
]
}),
/*
Here, I want the particular row (which row is selected through checkbox(the one in bold in code) ) to be selected keeping other rows of list grid non editable. I will appreciate your help. Thanks!
I am using Smart Client V10.0 for my project. I have been stuck in a phase where I need to make all rows un editable except one which I select through the checkbox. I have pasted the code below. I will really appreciate if you can give me a helping hand in this.
Code:
departments: isc.ListGrid.create({
ID: "departmentsID",
width: 550,
height: 150,
canEdit: true,
editEvent: "click",
modalEditing: true,
selectionType: "single",
alternateRecordStyles: true,
showEmptyMessage: false,
selectionAppearance: "checkbox",
fields: [
{name: "description", type: "text", canEdit: false},
{name: "view", type: "boolean", width: 70,
changed: function(form, item, value) {
if (value == false) {
departmentsID.setEditValue(item.rowNum, 2, false);
departmentsID.setEditValue(item.rowNum, 3, false);
}
}
},
{name: "copy", type: "boolean", width: 70,
changed: function(form, item, value) {
if (value == true)
departmentsID.setEditValue(item.rowNum, 1, true);
}
},
{name: "edit", type: "boolean", width: 70,
changed: function(form, item, value) {
if (value == true)
departmentsID.setEditValue(item.rowNum, 1, true);
}
}
]
}),
/*
Here, I want the particular row (which row is selected through checkbox(the one in bold in code) ) to be selected keeping other rows of list grid non editable. I will appreciate your help. Thanks!
Comment