Hi;
Looks like this feature is not in the current version ??
anyway, I have extended the form and added a enable as well as the ability to omit a particular (key) field using it's class name or id etc:
$.extend($.fn.form.methods, {
enable: function(jq){
jq.form('disable','enable')
},
disable: function(jq,omit){
console.log(mode);
var omit = '' || omit, mode = 'disable';
if(omit == 'enable') mode = 'enable';
return jq.each(function(){
var t = $(this);
//t.find('input').not(omit)._propAttr('disabled','disabled');
var plugins = ['combo','combobox','combotree','combogrid','datebox','datetimebox','spinner','timespinner','numberbox','numberspinner','slider','validatebox'];
for(var i=0; i<plugins.length; i++){
var plugin = plugins[i];
var r = t.find('.'+plugin+'-f').not(omit);
if (r.length && r[plugin]) r[plugin](mode);
}
t.form('validate');
})
}
})
$('#xx').form('disable','.fkey');
$('#xx').form('disable','enable');
But it does not seem to be quite right, on some forms one or 2 elements don't get DISABLED, on other forms most fields are not disabled, and I cannot seem to track down the cause !