Tuesday, June 11, 2013

How to Add an Image on a Hyperlink in a Kendo UI Grid Column

This is really interesting topic on developing Asp.net MVC applications. It is very easy to use Kendo UI grid with MVC and provides more functionality other than a normal grid. To reach the goal first we need to have a hyperlink column in our grid. This can be done using the ClientTemplate in the column. You can see it below. Inside the href tag you can add an image tag and give the particular image there. In hyperlink click event you can also pass data to controller. Inside the action link you can set the controller name and the action name there. Here the Id property pass as the action parameter. It is the value which is bound to the particular column. If you have any suggestions please leave a comment. Thank you.

No comments:

Post a Comment