Hello,
I have a grid with custom template column and with event handler for grid change event (I have omitted not important parts of code):
@(Html.Kendo().Grid<OpportunityTool.Models.AccountForGrid>()
.Name("AccountGrid")
.Columns(columns =>
{
// other columns definitions - not important here
columns.Bound(p => p.SlaveAccount.Owneridname).Title("VlastnĂk")
.ClientTemplate("<div class='contact-presenter'>#=SlaveAccount.Owneridname#</div>");
})
.Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
.Events(events => events
.Change("AccountGridChange"))
)
I have assigned event handler for click on my custom column too:
$('#AccountGrid').on('click', '.contact-presenter', showContactDetail);
I want to prevent the selection of the whole row, when user clicks on my custom column. I don't know how to do it, because change event is fired before cell click event.
Is there a way to change the order of the events?
Thanks for help,
Boris.