I'm very new to Kendo and inthis case, ASP.NET so your help would be appreciated. I'm creating a web page using ASP.NET MVC4 with an entity framework over a SQL DB to create my Views and Controllers.
I've created a view that uses a Kendo grid thus:
This works really well but I would like to add another column that isn't bound to data so that I can insert some buttons for editing, deleting etc. Ideally I'd like to show a link called 'Edit' that takes the user to another page for editing.
Many Thanks for your help!
7 Answers, 1 is accepted
I would recommend checking the following tutorials:
In case you need to add an an empty column, you can do so using the Template method as shown below:
Thank you for the suggestion.
The main reason for this requirement is that the ClientTemplate is a property of the bound columns. That is why the template column is made for not bound column scenarios.
The template column will also work with an empty string:
The Template property on the bound columns of the Ajax bound Grid is ignored. I understand that this may be confusing due to the matching names. When a column is bound to a field there are two scenarios:
1) ClientTemplate for Ajax bound Grids.
2) Template for Server bound Grid.
Still, the template which is referred here is used when a column is not bound to a specific field(regardless of the Ajax or Server binding), and it is for Template column:
I hope this description will provide more insights on why the Template column is used in this scenario.
Yes, you are right...the Template() is still used in AJAX mode for non-bound columns, and I even use that. Thanks for the clear explanation.
Thank you for the feedback.
I can suggest submitting a feature request in our UserVoice portal, as this is helping us to prioritize the most useful the requested functionality: