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

ASP.NET MVC 4 Treeview & SQL CE Entity?

7 Answers 136 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 06 Jan 2013, 07:49 PM

I'm using Visual Studio 2012 and building a very simple web app with the Kendoui Treeview and Editor. The Treeview data source is MS SQL CE 4 connected with Entity framework. Each node click will return text into the Editor on the right. The Treeview needs to be fully editable and drag-n-drop.

The Treeview demo code makes everything look easy, but I'm having trouble. I think your code example built into a downloadable project would more intuitive.

7 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 09 Jan 2013, 08:00 AM
Hi Kevin,

 What have you tried so far? What are the problems you are facing? How do you return the data from the DB to the treeview?

 I recommend checking the remote binding demo. You need to expose your data as JSON. There are many ways to do so depending your your server-side platform.

Regards,
Atanas Korchev
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 09 Jan 2013, 02:23 PM
I may have titled this post incorrectly. Maybe using the Entity framework is not necessary. It seems the JSON framework is better for using your Treeview? I'm very excited about the Kendoui web controls, very nice Treeview & Editor especially. I'm building a code snippet repository for my self and will purchase Kendoui web package if I can get this project going in the right direction. Help!

My goals are these:
1. use sql or sqlce locally (Internet down)
2. use web service when Internet available
3. Kendoui Treeview will display node values in Kendoui Editor

So maybe the JSON is best for web service and Entity better for local?

I've been programming C# .NET for approx. 9 years, MVC is fairly new. Help!
0
Atanas Korchev
Telerik team
answered on 10 Jan 2013, 11:36 AM
Hello  Kevin,

 If you are going to use Kendo with ASP.NET MVC we recommend trying Kendo Complete for ASP.NET MVC (which is part of the trial package). It comes with a runnable sample application which shows how to bind the treeview.

Regards,
Atanas Korchev
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 10 Jan 2013, 03:40 PM
Nice link and download. Only problem now is creating a new Keneo ASP.NET MVC project using the 'Project Configuration Wizard'. I will not take my login and password. I'm using the only credentials I have at Telerik, same one to login to this forum and get downloads.

1. What and I looking for using the 'Download' or 'Browse' buttons?
2. Again, my username and password do not work for 'Get Latest Version' (Download button).
3. I have downloaded and installed both Kendoui web open-source and 30-day-trial.
0
Andrey
Telerik team
answered on 11 Jan 2013, 03:35 PM
Hi Kevin,

Our current VSExtensions only support downloading distributions for the licensed version of Kendo UI Complete for ASP.NET MVC. You could just use the Browse... button in that form to browse to the location where you unzipped the Kendo UI Trial package or download the Kendo UI Trial installation package (Link).

Let me know if that helps.

All the best,
Andrey
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 11 Jan 2013, 08:59 PM
Okay, so I click 'Browse' and go here: " D:\kendoui.trial.2012.3.1114\wrappers\aspnetmvc\Binaries\Mvc3.Kendo.MVC.dll " then click 'Ok' and the browser search window closes. The Telerik 'Project Configuration Wizard' still has a black textbox where the folder path should be. The 'Next' button still doesn't enable.

I want you to know that I don't appreciate you taking days to troubleshoot my issue. Get with it or loose a sale. I will be calling your company soon. Thanks for taking too long by only telling me little pieces of info at a time. This support lacks big time.
0
Atanas Korchev
Telerik team
answered on 14 Jan 2013, 08:46 AM
Hello Kevin,

 If you install the trial version using the Kendo MSI installer the Visual Studio Extensions will be configured with the right path to the Kendo MVC assembly. Then you don't need to browse to the location where the zip file is extracted.

 If this fails for some reason you could follow the manual instructions for adding Kendo UI for MVC in your project.

 I recorded a short screencast which shows what the required steps are. I also send the generated project as attachment.

 
Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Kevin
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or