How to find current current click checkbox

1 posts, 0 answers
  1. bharat veer
    bharat veer avatar
    41 posts
    Member since:
    Dec 2009

    Posted 26 Mar 2014 Link to this post

    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"))
    )
Back to Top