I am currently using by buttons in .Clientrowtemplate like this
@(Html.Kendo().Grid<Modeldata>()
.Name("Grid")
.DataSource(d => d
.Ajax()
.ServerOperation(false)
.PageSize(5)
.Model(model => model.Id(task=> task.Id))
.Read(read => read.Action("getalltask", "task"))
)
.Columns(columns =>
{
columns.Template(e => { }).ClientTemplate(" ").Title("Action").Width("10%");
})
.ClientRowTemplate(
<td class='edit' style='width:10%'>" +
<input type='button' id='SubTask' title='Add sub Task' class='btnaddsub' onclick = 'AddSubTask( #: data.Id # );' >"
)
I want to show or hide this button when the #data.Show# is true. Please guide me in this.
Thanks in advance.
@(Html.Kendo().Grid<Modeldata>()
.Name("Grid")
.DataSource(d => d
.Ajax()
.ServerOperation(false)
.PageSize(5)
.Model(model => model.Id(task=> task.Id))
.Read(read => read.Action("getalltask", "task"))
)
.Columns(columns =>
{
columns.Template(e => { }).ClientTemplate(" ").Title("Action").Width("10%");
})
.ClientRowTemplate(
<td class='edit' style='width:10%'>" +
<input type='button' id='SubTask' title='Add sub Task' class='btnaddsub' onclick = 'AddSubTask( #: data.Id # );' >"
)
I want to show or hide this button when the #data.Show# is true. Please guide me in this.
Thanks in advance.