please add navigate property to custom command that fill new page address with current row id to href of a tag to easily link to relation page
Hi,
You can use the click handler to get hold of the dataItem and either set the href attribute or navigate to the desired url:
click: function(e) {
var tr = $(e.target).closest("tr");
var data = this.dataItem(tr);
// set the href
$(e.target).attr("href", "https://theurl" + data.id);
// or just use
window.location.href = "https://theurl" + data.id
}
Runnable example: https://runner.telerik.io/fullscreen/@bubblemaster/EWiPIPEc
Regards,
Alex Hajigeorgieva
Progress Telerik
command: [{ name: "color", text: "colors", navigate: "/colors/"+ @id }