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

Create New Row In Grid Details

3 Answers 190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 30 May 2012, 04:32 PM
This is probably going to be very confusing. Basically, I have a nested Grid as a Grid Details row. I want to be able to add a row to this nested grid, and can't seem to get it to work.

An example of the Grid as a Grid Details row is found here:
http://demos.kendoui.com/web/grid/detailtemplate.html

I want to be able to add a new row to this "Orders" grid within the "Employees" Grid.

Any thoughts?

3 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 01 Jun 2012, 12:32 PM
Hello Kevin,

I have already replied to your support query on the same subject. For convenience I am pasting my reply here too: 
To achieve this you could use the built-in "create" functionality of the Kendo UI Grid. Please note that in this case you need to configure the dataSource schema for the detail grid.  

For convenience I created a sample project that uses the aforementioned approach. Please check it and let me know if you have any further questions. 

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kevin
Top achievements
Rank 1
answered on 04 Jun 2012, 01:19 PM
My issue actually stemmed from the fact that I was using page-side datasource filtering for each of my detail Grids. Once I changed it to use server-side filtering based on the datasource's read URL, the "create" command worked perfectly. I think it was filtering out page-side the created row because the groupid I was filtering on did not match (number vs. null).

Thanks!
0
Daniel
Top achievements
Rank 1
answered on 05 Jun 2012, 06:43 AM
How can i get the parent row inside the detail-grids create?
cause my detail grid need a referece to in wich parent it is created.
i hope its understandable what i need :)
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Kevin
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Share this question
or