This is a migrated thread and some comments may be shown as answers.

k-on-save event passing undefined value in inline editing

1 Answer 246 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fabio
Top achievements
Rank 1
Fabio asked on 24 Mar 2016, 10:35 AM

Hi,

i have a problem with passing value with k-on-save event.

this is the html code:

 <div kendo-grid
         id="LineGrid"
         k-data-source="lineCtrl.linesList"
         k-editable="'inline'"
         k-selectable="'single'" 
         k-on-save="lineCtrl.OnSaveEventHandler(e)"                 
         k-toolbar="['create']"
         k-sortable="true"
         k-scrollable="false"
         k-filterable="true"
         k-pageable="{ 'refresh': false, 'pageSizes': true }"
         k-columns="lineCtrl.LineDataSourceColumns"
         kx-selected-item="lineCtrl.CurrentLine"
         kx-instance="lineCtrl.LineGrid"
         class="bm_grid">
    </div>

this is the function OnSaveEventHandler:

public OnSaveEventHandler(e)
        {
            alert("OnSaveEvent: " + e);
        }

when i click on the update button, the alert show "OnSaveEvent: undefined".

i want to pass the value to the function

how can i solve it?

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 28 Mar 2016, 08:34 AM

Hello Fabrizio,

You should pass the argument to the event handler using the kendoEvent variable.

http://docs.telerik.com/kendo-ui/AngularJS/introduction#event-handlers

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Fabio
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or