This is a migrated thread and some comments may be shown as answers.

How to find current current click checkbox

0 Answers 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bharat veer
Top achievements
Rank 1
bharat veer asked on 26 Mar 2014, 02:09 PM
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"))
)
Tags
General Discussions
Asked by
bharat veer
Top achievements
Rank 1
Share this question
or