Skip to content

Expose HtmlAttributes string handler overload for custom and built-in column commands #7879

@alestoya

Description

@alestoya

Related to: #7872

Overview

As part of the enhancement above, it would be beneficial to expose an additional string overload for accepting a function handler. Both within a Custom Command and through built-in ones.

For example:

HtmlHelper:

@(Html.Kendo().Grid<GridModel>()
    .Name("grid")
    .Columns(columns =>
    {
        ...

        columns.Command(command => {
	      command.Edit().HtmlAttributes("editAttributesHandler");
	      command.Custom().HtmlAttributes("customAttributesHandler");
	});
    })
    ...
)

TagHelper:

<kendo-grid name="grid" height="550">
    <columns>
        <column>
            <commands>
                <column-command name="Some Text" html-attributes-handler="myHandler">
		</column-command>
            </commands>
       </column>
    </columns>
</kendo-grid>

Environment

  • Kendo UI version: 2024.2.514
  • Browser: [all]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions