Reputation: 1574
I have a kendo grid that I'm using in asp.net MVC and the column won't display anything. It just returns empty. I don't see the input in code when I use developer tools either.
columns.Template(@<text>
<input type="button" class="btn btn-default" value="Tasks"
onclick="window.location.href = '../../OBClientSetupTasks/Index/@item.SetupID'" />
</text>).HeaderTemplate(@<text>Tools</text>);
})
I don't understand what I'm missing as that value should display the button.
Upvotes: 0
Views: 774
Reputation: 109005
For AJAX bound Kendo grids you need to use the ClientTemplate
helper, and JS templates (#= …#
) to incorporate values on the client side.
Upvotes: 1