Ability to hide buttons like edit based on conditions should be straight forward like this: command(cmd => cmd.Custom("Edit").Click("blah").Visible(condition => condition.Status == "Current")
Hi Vivek,
The command visibility can be controlled via the Visible option. It accepts the name of a JavaScript handler where you can specify a condition that determines if a command button should be visible:
Command configuration:
columns.Command(command => { command.Edit(); command.Destroy().Visible("isVisible"); });
JavaScript:
function isVisible(dataItem) {
return dataItem.ProductID != 1;
}
Regards,
Viktor Tachev
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Thanks for this idea. Presently you can achieve this functionality programmatically as explained in this forum thread: http://www.telerik.com/forums/how-do-i-conditional-set-the-visibility-of-the-command-edit-button-on-a-row-by-row-basis-