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

Request for a demo using CRUD Master-Detail, MVC,Razor and Entities

6 Answers 300 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Spyros
Top achievements
Rank 1
Spyros asked on 18 Jan 2013, 11:54 AM
Hi!

I am struggling to get a master-detail fully working (and I m not succeding...unfortunately)

The site has lots of demos but I cannot find one that covers Ajax KendoGrid Master-Detail CRUD in both using MVC + Entities Framework + Razor.

I would appreciate it if you upload such a demo or point me somewhere that something like that exists.

Thanx in advance

6 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 22 Jan 2013, 09:24 AM
Hello Spyros,

I attached a sample project using editing in a Grid hierarchy.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Greg
Top achievements
Rank 1
answered on 25 Jan 2013, 03:27 PM
I recently had to do this for a project and blogged about it. Mine had a few extra requirements and quirks that I ran into.

http://ggacura.wordpress.com/2013/01/24/6/
0
Spyros
Top achievements
Rank 1
answered on 03 Feb 2013, 07:16 PM
Thank you guys! I will start studying them immediately!
0
Rulin
Top achievements
Rank 1
answered on 03 Oct 2013, 07:12 PM
Thanks Daniel.

Just one question. It will have issue if we insert a child before insert the parent.  I want to know how to disable expand details while edit/add a parent.

Regards.
Rulin
0
Anurag
Top achievements
Rank 1
answered on 03 Oct 2013, 08:58 PM
Hi..We were able to get this done before I came across this thread but there are few additional requirements i have.
1. We have added custom buttons to the toolbar. how do we add images to them?
2. How to assign a custom url for the Add/Edit popup window?
3. When we have a nested grid (Hierarchical), the first row is expanded by default. how do we disable that?
4. We have a feature where we show a grid in a window and the selected rows should be returned when the save button is clicked in that window.

Can you please expand your existing solution to add these features as well?

Thanks
Anurag
0
Daniel
Telerik team
answered on 07 Oct 2013, 12:51 PM
Hello,

@Rulin

You could hide the icon in the Grid edit event when the model is new if you do not wish to allow the detail to be expanded. You could also use the approach from this code-library and add a ModelState error when the parent is not created.

@Anurag

These questions are not related to the thread topic. Please open separate threads with more detailed information about the functionality you are looking for. As general information I can say:

  1. You should use CSS to add images to the custom buttons. 
  2. I am not sure if I understand correctly this question, but the URL used to update/create the records can be configured with the DataSource.
  3. No rows will be expanded by default. You are probably using the code from the demo which expands the first row in the dataBound event. 
  4. This documentation topic shows how the selected items can be found in the change event. You can use the same approach when the save button is clicked.
Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Spyros
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Greg
Top achievements
Rank 1
Spyros
Top achievements
Rank 1
Rulin
Top achievements
Rank 1
Anurag
Top achievements
Rank 1
Share this question
or