This is a migrated thread and some comments may be shown as answers.

Creating Hyperlinks on Grid Row Items?

1 Answer 963 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Harsha
Top achievements
Rank 1
Harsha asked on 08 Mar 2012, 07:40 AM
HI All, 

I have been trying to create hyperlinks on Grid Items, i mean to say when  a row item is clicked i want to navigate it to a  different page based on the selection. I'm trying to achieve it using the change event and attaching an handler to it. I have attached the partial code snippet in here, but it doesn't seem to be working. Can anyone help me with this or is there a work around?

Thanks & Regards, 

Harsha

---
$("#grid").kendoGrid({

height: 250,
                        groupable: true,
                        selectable: "row",
                        change: onSelect,
                        scrollable: true,
                        sortable: true,
                        columns: {}
})
---
function onSelect(arg){
  var clicked = $("#grid").data("kendoGrid");
  $(clicked).prop("href", "newPage.html");
)

1 Answer, 1 is accepted

Sort by
0
Manoj Kapoor
Top achievements
Rank 2
answered on 09 Mar 2012, 05:18 AM
Hello Harsha,

Refer the created template field in the thread I initiated related to editing of template field at URL http://www.kendoui.com/forums/ui/grid/grid-editing-issue-with-template-columns.aspx (Refer attached HTML page)

This one creates a Hyperlink on the grid column which can help user navigate to a separate page.

Thanks & Regards,
Manoj Kapoor
Tags
Grid
Asked by
Harsha
Top achievements
Rank 1
Answers by
Manoj Kapoor
Top achievements
Rank 2
Share this question
or