Unplanned
Last Updated: 23 Jan 2020 15:40 by ADMIN
Imported User
Created on: 27 Aug 2013 16:59
Category: Grid
Type: Feature Request
2
grid custom command options for navigations
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
2 comments
ADMIN
Alex Hajigeorgieva
Posted on: 23 Jan 2020 15:40

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:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/columns.command#columnscommandclick

      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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Imported User
Posted on: 27 Aug 2013 17:05
command: [{ name: "color", text: "colors", navigate: "/colors/"+ @id }