Completed
Last Updated: 06 Feb 2018 10:06 by Satish
Andrew
Created on: 16 Feb 2012 05:18
Category: Grid
Type: Feature Request
84
More Grid Events
I'd like to see an event for Grid contents modified (after-edit or after-add/delete, etc).  This would enable a sync with a DataSource, for instance, without further user action.  Presently, this is not easily achieved.
12 comments
Satish
Posted on: 06 Feb 2018 10:06
"beforeChange" like event also missing.
ADMIN
Pavlina
Posted on: 15 May 2017 11:35
As of R2 2017 release the grid widget received an additional set of events:
beforeEdit: http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-beforeEdit
cellClose: http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-cellClose
columnMenuOpen: http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-columnMenuOpen
filterMenuOpen: http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-filterMenuOpen
Mikhail
Posted on: 16 Sep 2016 11:19
It would be good, if event set for kendo grid was equal to teleik ui for asp.net ajax radGrid
yi
Posted on: 13 Sep 2015 15:09
Please consider adding Kendo Grid CellClose event. Internally kendo grid call CloseCell() to close the editor when focus is moved away.  kendo grid already have the model object.  All you would have to do is add a simple CellClose event for those of us that use complex custom editors.  This would allow us to do model adjustments or "cleanup" when the cell is closing.
Imported User
Posted on: 10 Feb 2015 21:30
There is an implementation here on StackExchange that does more or less exactly what is needed (Alternative 2).

http://stackoverflow.com/questions/20881484/make-cell-readonly-in-kendo-grid-if-condition-is-met

I would like to have this build into the grid and with MVC bindings for the event though.
ptmk
Posted on: 11 Dec 2014 11:33
Add a new event "BeforeEdit" in grid

I have a lot of situations when I need to check status of editing object in a grid.
If status is correct I should allowed editing object. If status is not correct I should prevent showing editing form.
Now I have two solutions:

The first: is not beautiful but fast:
I  can close popup edit form, that has been already created by inner mechanism of Kendo editing:

function Grid_OnEdit(e) {
        if (!isCorrectStatus(e.model.StatusID)) {
            var grid = this;
            setTimeout(function () {
                grid.cancelRow();
                alert("Bad status!");
            });
        }   
}

But the popup edit form flicks...

The second: do it “by hand”. Including even server validation…
Very slow…
Iman
Posted on: 17 Apr 2014 14:32
just god knows how many times I need events which occurs after : edit , add, delete and when user click cancel command the cancel event occurs before data-binding and the grid lost the selected row.
Sergiu
Posted on: 03 Mar 2014 11:29
Currently, if a field is editable based on other field (e.g. Locked) a check should be performed in "edit" event handler, and inside here call grid.closeCell(). But this causes the cell focus to be lost (when using navigatable=true in batch editing mode).

So a beforeEdit would allow the user to set some custom logic if needed.
Dave
Posted on: 24 Jan 2013 14:20
I'd like to see an ItemDataBound event for row databinding. A common use case is to highlight rows (eg change the styling) if the data meets certain criteria. There are plenty of questions around on the internet asking how to do this, and the colution of using DataBound and iterating over the data is, quite frankly, a poor solution and not at all performant.
Imported User
Posted on: 24 Jan 2013 14:15
an on ItemDataBound or RowDataBound would be very useful
Andrew
Posted on: 31 May 2012 19:48
I have use for both a contentsModified and afterEdit events.
Jonathan
Posted on: 16 May 2012 22:28
I would also add that events should be fired for resize and reorder. I can't consider KendoUI's grid as it doesn't have this yet and it is needed. With the resize event it would be nice to have the event object contain each columns size.