Change Event Fired Multiple Times

2 posts, 0 answers
  1. Tim
    Tim avatar
    1 posts
    Member since:
    Sep 2013

    Posted 01 Oct 2013 Link to this post

    Hi, we have a grid that uses the Change event to go to a new screen, but the Change event is fired multiple times. Is this as expected or a bug?  
    In the example below, the "Change" dialog is shown twice in Chrome and 3 times in FF.

                            .Columns(columns =>
    columns.Bound(p => p.MixtureId).Filterable(false).Title("Identification").Width(100);
                                columns.Bound(p => p.ReferenceNumber).Title("Reference #").Width(100);
    columns.Bound(p => p.CaseName).Title("Case").Width(100);
    columns.Bound(p => p.Description).Title("Description").Width(100);
    columns.Bound(p => p.CollectionLocation).Title("Collection Location").Width(100);
    columns.Bound(p => p.CollectedOn).Format("{0:MM/dd/yyyy}").Title("Collection Date").Width(100);
    columns.Bound(p => p.LabAnalysisDate).Format("{0:MM/dd/yyyy}").Title("Lab Analysis Date").Width(100);
                            .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
                            .Events(events => events.Change("onRowSelectionChanged"))
                            .HtmlAttributes(new { style = "height:740px;" })
                            .DataSource(dataSource => dataSource
                                .Read(read => read.Action("ListMixtures", "Mixture"))

    function onRowSelectionChanged(arg) {
  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2308 posts

    Posted 02 Oct 2013 Link to this post

    Hello Tim,

    I would suggest you to use a console.log statement instead of alert in order to test events, since the result may be misleading otherwise. With this said, I was unable to reproduce the issue on my side. The event is fired once as expected.

    Nevertheless if you are still experiencing any issues, please send me a sample project where the problem is reproducing, so I could assist you further.

    I wish you a great day!

    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top