Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- columns.Bound(c => c.isSelect).Title("").ClientTemplate("#= GetEditTemplate(data)#").Width(120);
- function GetEditTemplate(data) {
- var html;
- var statusText = $("#Status").val().toLowerCase();
- if (data.isSelect === true) {
- if (statusText != "canceled" ) html = kendo.format("<a class="k-button" href='" + '@Url.Action("EditedStuff", "MyController")' + "?Id={0}" + "'>Details</a>", data.Id);
- else html = kendo.format("<a class="k-button k-state-disabled" href='" + '@Url.Action("EditedStuff", "MyController")' + "?Id={0}" + "'>Details</a>", data.Id);
- else {
- if (data.viewId != null) {
- html = kendo.format("<a class="k-button" href='" + '@Url.Action("View", "MyController")' + "?vid={0}" + "' target='_blank'>View </a>", data.viewId);
- //need help here where there should be another button with "select" option
- }
- }
- return html;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement