HOW TO DISPLAY HYPER LINK COLUMN IN KENDO GRID | URDINESH

Software Programming, Tutorials, Interview Preparations,Stock Market,BSE/NSE, General informations

Friday, August 15, 2014

HOW TO DISPLAY HYPER LINK COLUMN IN KENDO GRID

Hi All,

Many of us struck with displaying Hyper Link Columns in Kendo Grid. Here is the solution,

There are two ways you can do this,
  1. Using Template Function
  2. Using Client Template Function

You can use template function when there is no requirement for sorting of that column.

So I always suggest Client template.

 Use the following way to do this,

                .ClientTemplate("<a href=\"javascript:yourJSfunctions('#= DataFiled#');\"> #= columnDataFiled# </a>");

Example:

.ClientTemplate("<a href=\"javascript:GetEmployeeDetails('#= EmployeeID#');\"> #= EmployeeID# </a>");

Note:

Here I am giving Data field with preceding its object name. 

No comments:

Post a Comment

Thanks for your valuable comments

Followers