In the Details Template of the Master Grid , in the first Tab Item grid , I have added a column id with ClientHeaderTemplate as a Check box .
When clicked on the checkbox the event is not triggered.
<script id="secattributes" type="text/kendo-tmpl">
@(Html.Kendo().TabStrip()
.Name("tabStrip_#=SecurityMasterId#")
.SelectedIndex(0)
.Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
.Items(items =>
{
items.Add().Text("Security Attributes").Content(@<text>
@( Html.Kendo().Grid<CoreMaster.Models.SecurityAttributeView>()
.Name("securityMaster_#=SecurityMasterId#")
.ToolBar(toolbar =>
{
toolbar.Create().Text("Add new Attribute");
})
.Editable(editable =>
{
editable.Mode(GridEditMode.PopUp).TemplateName("secattribute");
})
.Columns(cols =>
{
//This Check box event is not triggered
cols.Bound(y => y.Id).ClientHeaderTemplate("<label><input id='myId' type='checkbox' value='#= getAllData #' onchange='getAllRecords(#=id#)'>Display all records</label>");
cols.Bound(y => y.Name).Title("Name");
})
.DataSource(dataSource => dataSource
.Ajax().ServerOperation(true).PageSize(10)
.Model(model =>
{
model.Id(p => p.Id);
})
)
.Sortable()
.Pageable(p => p.Enabled(true)).Events(e => e.Edit("onEditGrid")) .ToClientTemplate() ) </text>);
When clicked on the checkbox the event is not triggered.
<script id="secattributes" type="text/kendo-tmpl">
@(Html.Kendo().TabStrip()
.Name("tabStrip_#=SecurityMasterId#")
.SelectedIndex(0)
.Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
.Items(items =>
{
items.Add().Text("Security Attributes").Content(@<text>
@( Html.Kendo().Grid<CoreMaster.Models.SecurityAttributeView>()
.Name("securityMaster_#=SecurityMasterId#")
.ToolBar(toolbar =>
{
toolbar.Create().Text("Add new Attribute");
})
.Editable(editable =>
{
editable.Mode(GridEditMode.PopUp).TemplateName("secattribute");
})
.Columns(cols =>
{
//This Check box event is not triggered
cols.Bound(y => y.Id).ClientHeaderTemplate("<label><input id='myId' type='checkbox' value='#= getAllData #' onchange='getAllRecords(#=id#)'>Display all records</label>");
cols.Bound(y => y.Name).Title("Name");
})
.DataSource(dataSource => dataSource
.Ajax().ServerOperation(true).PageSize(10)
.Model(model =>
{
model.Id(p => p.Id);
})
)
.Sortable()
.Pageable(p => p.Enabled(true)).Events(e => e.Edit("onEditGrid")) .ToClientTemplate() ) </text>);