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.
对于AJAX绑定的Kendo网格,您需要使用ClientTemplate
帮助器和JS模板( #= …#
)在客户端合并值。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.