Awadhesh Singh
Awadhesh Singh

Reputation: 59

Kendo TreeList command 'visible' not working

visible is not working within command in Kendo TreeList (Kendo UI JQuery).

{
    command: [
        {
            imageClass: "k-i-info",
            name: "details",
            text: "Details",
            visible: function (dataItem) { 
                return dataItem.LastName.charAt(0) !== "D" 
            }
        }
    ]
}

Upvotes: 0

Views: 412

Answers (1)

Carsten Franke
Carsten Franke

Reputation: 1669

Of course not. It is not part of the API. See https://docs.telerik.com/kendo-ui/api/javascript/ui/treelist/configuration/columns.command

Depending on what you are trying to achieve, the DataBound-event may help you: https://docs.telerik.com/kendo-ui/api/javascript/ui/treelist/events/databound

Upvotes: 0

Related Questions