Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command columns's attr setting does not accept a function handler #7872

Open
alestoya opened this issue Jun 21, 2024 · 0 comments
Open

Command columns's attr setting does not accept a function handler #7872

alestoya opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@alestoya
Copy link

Overview

Currently, the command columns's attr setting does not accept a function handler. Similar to how it can be set for the column.attributes.

Preventing the following initialization definition:

$("#grid").kendoGrid({
  columns: [
    { field: "name" },
    { 
       command: [
	  { 
	       attr: (data) => {return {title: "Some Test"}}, 
	       name: "destroy", 
	       text: "Remove" 
	  }
       ] 
    }
  ],
  ...
});

As demonstrated in this dojo.

Current behavior

Preserving the aforementioned initialization will produce the following result:
image

Expected/desired behavior

Preserving the aforementioned initialization should serialize the passed attributes accordingly:

image

Environment

  • Kendo UI version: 2024.2.514
  • Browser: [all]
@alestoya alestoya added this to the 2024 Q3 (Aug) milestone Jun 21, 2024
@alestoya alestoya self-assigned this Jun 21, 2024
@github-actions github-actions bot added the FP: Planned Sync status with associated Feedback Item label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant