Menu
this is not working it is saying startsWith is not a function.
how can I get this to work. I need to disable a button if the string starts with Admin@
[CODE]
function(sm, row, rec) {
if (rec.get(‘objname’).startsWith(“Admins@”)) {
Ext.getCmp(‘deleteButton’).disable()
}
else Ext.getCmp(‘deleteButton’).enable();
}
}
can someone show me a way to ge this to work
thanks