Applying event handlers after row creation in batch edit mode

1 posts, 0 answers
  1. Nathaniel
    Nathaniel avatar
    3 posts
    Member since:
    Sep 2015

    Posted 12 Oct 2015 Link to this post

    We are working on an application in which the Grid control is being used to enter a number of line items which do not need to be stored in the database until the whole order is completed. We are using the batch editing mode and heavy client template use in order to get row data to fit the model of the page.

    As part of the application, we want to automatically, via Ajax, populate item data when a user selects the item from a dropdown. Prior to moving to the batch edit mode, we were attempting to use the inline edit mode, and were able to attach our event handlers properly by calling a function off of the Grid's Edit() event handler, as it was called after the row was added to the DOM. We can bind the same function to the DataSource's Change() event, but this event fires before the new row is added to the DOM, so our event bindings fail.

    What we would like is to be able to bind our events on row creation through the Grid or DataSource's initialization. If there is an alternate method to handle the controls in the row's event bindings, that is acceptable as well.

    Kendo UI Version: 2015.2.902.545

    OS: Windows 8 for development, Server 2008 R2 and up compatibility required

    Browser: IE10+, Chrome (latest three)

    jQuery: 2.1.4

Back to Top