ComponentOne ASP.NET MVC Controls
CanExecuteCommand Property

C1.Web.Mvc Namespace > MenuCommand Class : CanExecuteCommand Property
This method returns a Boolean value that determines whether the controller can execute the command.
Syntax
'Declaration
 
<JsonConverterAttribute(ConverterType=C1.JsonNet.Converters.FunctionConverter, ConverterParameters=)>
<JsonAttribute(Order=-1, 
   SkipIfDefault=, 
   PropertyName="canExecuteCommand", 
   Name="canExecuteCommand")>
Public Property CanExecuteCommand As String
[JsonConverter(ConverterType=C1.JsonNet.Converters.FunctionConverter, ConverterParameters=)]
[Json(Order=-1, 
   SkipIfDefault=, 
   PropertyName="canExecuteCommand", 
   Name="canExecuteCommand")]
public string CanExecuteCommand {get; set;}
Remarks
If this method returns false, the menu option is disabled.
See Also

Reference

MenuCommand Class
MenuCommand Members