Nov 28, 2011, 4:53 AM
Lock row for block another user to edit ?
First, thank you for "Ext.net".
I have a GridPanel. When user click on 'view' button on each row. It open 'Form' that has a
'edit' button. When user click on edit button then they can modify any field in form.
I need a program lock record or row for block another user to edit form at the same time.
I tried.
Thank agian and sorry for poor English.
I have a GridPanel. When user click on 'view' button on each row. It open 'Form' that has a
'edit' button. When user click on edit button then they can modify any field in form.
I need a program lock record or row for block another user to edit form at the same time.
I tried.
var editForm = function() {
if(GridPanel1.selModel.isLocked()){
alert("Record has been locked by another user!");
return true;
}else {
GridPanel1.getSelectionModel().lock();
DeleteButton.show();
SaveButton.show();
CancelButton.show();
FormPanel1.cascade(enableForm, false, true);
this.hide(); // this --> editButton
}
}
but GridPanel1 has locked all row (I need lock on one row)Thank agian and sorry for poor English.