This question is locked. New answers and comments are not allowed.
I am using kindo grid.
i am also using "change" event as you can see below.
on chnage event i am firing server side code through Ajax only when row is selected in grid.
i want this code should not be fired when checkbox is cliked .
Could you tell me how to find current clickable checkbox.
@(Html.Kendo().Grid<TPA.UI.Model.Contract.ModelGridView.ContractPlanMainBenefitViewModel>()
.Name("KendoGrid2")
.BindTo((IEnumerable<TPA.UI.Model.Contract.ModelGridView.ContractPlanMainBenefitViewModel>)Model.ContractPlanMainBenefitList.AsQueryable())
.Columns(columns =>
{
columns.Bound(p => p.ContractPlanMainBenefitId).Hidden();
columns.Template(x => x.ContractPlanMainBenefitId).ClientTemplate("<input type='checkbox' id='${ContractPlanMainBenefitId}' onclick='return ItemClicked(${ContractPlanMainBenefitId});' class='item_checkbox' />").Width(20).HeaderTemplate("<input type='checkbox' onclick='return HeaderClicked();' id='chkItemHeader'/>");
})
.DataSource(dataSource => dataSource
.Custom()
.PageSize(20)
)
.Selectable(sel => sel.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row))
.Scrollable(s => s.Height("auto"))
.Events(events=> events.Change("OnRowSelect"))
)
i am also using "change" event as you can see below.
on chnage event i am firing server side code through Ajax only when row is selected in grid.
i want this code should not be fired when checkbox is cliked .
Could you tell me how to find current clickable checkbox.
@(Html.Kendo().Grid<TPA.UI.Model.Contract.ModelGridView.ContractPlanMainBenefitViewModel>()
.Name("KendoGrid2")
.BindTo((IEnumerable<TPA.UI.Model.Contract.ModelGridView.ContractPlanMainBenefitViewModel>)Model.ContractPlanMainBenefitList.AsQueryable())
.Columns(columns =>
{
columns.Bound(p => p.ContractPlanMainBenefitId).Hidden();
columns.Template(x => x.ContractPlanMainBenefitId).ClientTemplate("<input type='checkbox' id='${ContractPlanMainBenefitId}' onclick='return ItemClicked(${ContractPlanMainBenefitId});' class='item_checkbox' />").Width(20).HeaderTemplate("<input type='checkbox' onclick='return HeaderClicked();' id='chkItemHeader'/>");
})
.DataSource(dataSource => dataSource
.Custom()
.PageSize(20)
)
.Selectable(sel => sel.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row))
.Scrollable(s => s.Height("auto"))
.Events(events=> events.Change("OnRowSelect"))
)