protected void ValidateSiteMode(FileManagerActionEventArgsBase e) { e.Cancel = true; e.ErrorText = "Data modifications are not allowed in the example."; }
void ValidateSiteEdit(FileManagerActionEventArgsBase e) { // comment out this line to enable editing e.Cancel = true; e.ErrorText = "Data modifications are not allowed in the example."; }
protected void ValidateSiteEdit(FileManagerActionEventArgsBase e) { //e.Cancel = DevExpress.Web.Demos.Utils.IsSiteMode; //e.ErrorText = DevExpress.Web.Demos.Utils.GetReadOnlyMessageText(); }
static void OnFileSelectorAction(object source, FileManagerActionEventArgsBase e) { e.Cancel = IsSiteMode; e.ErrorText = GetReadOnlyMessageText(); }