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

Replacement for clientEvents.OnEdit

1 Answer 175 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AP
Top achievements
Rank 1
Iron
Iron
Veteran
AP asked on 24 Jul 2012, 01:32 PM
I know clientEvents has changed to Events for Kendo with AspNET MVC, but there doesn't seem to be an Edit event anymore, just Error and Change.

How do I define a function to fire onEdit?

From another post, this is the only way to be able to define the pop-up windows size, but it is also vital to be able to hide / show fields etc depending on whether the form is in insert or edit mode.

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 25 Jul 2012, 07:03 AM
Hello Andrew,

 The Error and Change events are the DataSource's. The grid still supports the Edit event:

@(Html.Kendo().Grid()
              .Events( e => e.Edit("edit") )
)

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
AP
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Atanas Korchev
Telerik team
Share this question
or