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

[Solved] Datasource in detailExpand

4 Answers 246 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mathias
Top achievements
Rank 1
Mathias asked on 16 Apr 2015, 06:59 AM

Hey,

next Question to kendo Grid.

On My last Question we found a Solution to expand the DetailRow on a selected Page.

Now, in the detail row is a KendoGrid and now i ve the same problem.

Have an Item in de detailGrid to identify -> know how

get the Datasource in de detailExpand event -> i dont know

im using the $("#gridMain").data("kendoGrid").expandRow(row); to expand the detailRow

 

Hope we found a solution again

 

Thanks

4 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 17 Apr 2015, 04:38 PM

Hello Mathias,

When the detailExpand event is fired, the child Grid has not yet bound to it's data, so it's dataSource items cannot be accessed yet. As a workaround we recommend using the dataBound event of the child Grid instead.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mathias
Top achievements
Rank 1
answered on 20 Apr 2015, 05:24 AM

with the Method  $("#gridMain").data("kendoGrid").expandRow(row)

dataBound on the detailGrid is not working

0
Dimiter Madjarov
Telerik team
answered on 20 Apr 2015, 08:46 AM

Hello Mathias,

If the child Grid is automatically binding to it's data when the detail row is expanded, it's dataBound event should be fired as expected.

If the problem is still persisting, please sens us an isolated runnable example that demonstrates it, so we could provide further assistance.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mathias
Top achievements
Rank 1
answered on 21 Apr 2015, 05:22 AM
It works, Thanks 
Tags
Grid
Asked by
Mathias
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Mathias
Top achievements
Rank 1
Share this question
or