Binding extra events

2 posts, 0 answers
  1. Steve
    Steve avatar
    41 posts
    Member since:
    Apr 2015

    Posted 08 Jun 2015 Link to this post

    Hi All, 

    Is there a way to bind extra event to the 'create' toolbar button?  I want to populate data before or after into grid column after a new row was insert by kendo. 

    I tired the following for the toolbar button but with no luck

    ​edit: function (e) {
            e.container.find(".k-grid-add").on("click", function (e) {
            //populate data here

     and this

    var grid =  $("#grid").kendoGrid({...});'edit', function (e) {

         e.container.find('.k-grid-add').click(function () {

             //populate data here



  2. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 09 Jun 2015 Link to this post

    Hello Steve,

    If you want to populate data in the grid, you can use the edit event of the grid, and not the toolbar item. If you attach a click handler to the add button when the grid is in edit mode, then this click will take off edit mode the record currently being edited. Can you please elaborate a bit more on the exact scenario that you have?

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