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

data-detail-template edit event doesn't fire

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 02 Oct 2016, 12:12 PM

Hello,

I was trying to work with the data-detail-template of the grid and it works fine but I don't know how to setup the binding for the create,edit,... events.
For the main rows it's now problem the events fire like they should be.
And what is even stranger is that the delete event works for the data-detail-template but not for create or edit.

There is something with the bindings I don't understand...

You can find the code here http://dojo.telerik.com/aZugI/8

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 04 Oct 2016, 01:40 PM
Hello Kevin,

I have noticed a few things that are probably the reason for this behaviour:

1) The Kendo UI Grid is working only with a standard DataSource, not with the HierarchicalDataSource:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#fields-dataSource

2) The editing in the second Grid is not using the correct syntax- editable: "inline" should be data-editable="inline".

3) It is not recommended both the Grid and the Grid in the details template to have the same dataSource.

4) The Kendo UI Grid does not have a create and delete events. Please check all of the available events of the Grid:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events

Additionally, I made a Dojo example demonstrating how to use a Grid with child Grid:

http://dojo.telerik.com/EfODO

Let me know if you need additional information on this matter.

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or