GridColumnCommandTagHelper
Example
Razor
<column-command>
</column-command>
Attributes
Attribute | Type | Description |
---|---|---|
name | String | The name of the command. The built-in commands are "edit" and "destroy". Can be set to a custom value. |
class-name | String | |
click | String | The name of the JavaScript function executed when the user clicks the command button. The function receives a jQuery Event as an argument. The function context (available via the this keyword) will be set to the grid instance. |
html-attributes | Object | Specifies the Html Attributes for the command. |
html-attributes-handler | String | Specifies the function handler that will serialize the HTML attributes for the command. |
icon-class | String | The class for the web font icon of the button. |
template | String | The template of the command column. |
template-handler | String | Specifies the function template handler that will be used for serializing the column. |
template-id | String | The template of the command column. |
template-view | IHtmlContent | The template of the command column. |
text | String | Specifies the Text that will be displayed for the command button. |
visible | String | The name of the JavaScript function executed on initialization of the row which will determine whether the command button will be visible. The function receives a the data item object for the row as an argument. |