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

Hierarchgrid cshtml code

8 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 16 Jul 2014, 03:53 PM
Hi

I was able to open the sample hierarchy.cshtm grid but now there is no cshtml file in the sample below, it only has the html. Can you please let me know from where I can get the View and the Controller for that sample?

http://demos.telerik.com/aspnet-mvc/grid/hierarchy

8 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 17 Jul 2014, 09:37 AM
Hello Jim,


You could find the View and the Controller used below the example on the provided demos page. Additionally a Visual Studio project, containing all of the examples is included in the Kendo UI distribution package. It is in the \wrappers\aspnetmvc\Examples folder.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jim
Top achievements
Rank 1
answered on 17 Jul 2014, 10:12 AM
the cshtml file is not in the online example
http://prntscr.com/43j8b8
0
Dimiter Madjarov
Telerik team
answered on 17 Jul 2014, 10:25 AM
Hi Jim,


The screenshot demonstrates the Kendo UI Web version of the example. The link from the first post points to the correct MVC example. You could also navigate to the bottom of the page to switch between examples.

I hope this information helps.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jim
Top achievements
Rank 1
answered on 17 Jul 2014, 11:03 AM
thanks!

Now another question.
Can I have for the detail grid (the nested one) to be from a different model?
Do you have an example?
0
Dimiter Madjarov
Telerik team
answered on 17 Jul 2014, 11:24 AM
Hello Jim,


I am not sure that I understand the question. In the current example the master and the child Grids are using different models - Employee and Order. Is this what you are looking for or I am missing something?

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jim
Top achievements
Rank 1
answered on 17 Jul 2014, 11:55 AM
Sorry for the stupid question! I am trying to learn MVC !

I was using in my View :

@model IEnumerable<interactive.Models.vOpenPositionsDistinct>
@{
    ViewBag.Title = "Index";
}

<h2>Open Positions</h2>

<div id="positionsDb">
    @(Html.Kendo().Grid<interactive.Models.vOpenPositionsDistinct>()


.
.
.

and that confused me... now I am trying to follow the example but I get no data back in the view, although my controller has data in it.
I am using DbSet and EF.






0
Accepted
Dimiter Madjarov
Telerik team
answered on 17 Jul 2014, 12:17 PM
Hello Jim,


You could take a look at the following step-by-step guides that might help you to solve the issue:
Kendo Grid Ajax Binding
Client Detail Template

Let me know if I could assist further.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jim
Top achievements
Rank 1
answered on 17 Jul 2014, 12:37 PM
very nice!
thanks
Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Jim
Top achievements
Rank 1
Share this question
or