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

Hello Kendo UI - Grid CRUD Tutorial in VB.NET problems

0 Answers 123 Views
Getting started with ASP.NET
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 09 May 2014, 01:43 PM
Hi Guys,

I'm currently working through the Hello KendoUI Tutorials, and am having a bit of trouble getting them to work properly in VB.NET. I'm new to the Visual Studio environment, so apologies if these seem like simple problems.

My first problem has been in the Employee Model object, particularly with the Data.Employee object. VS2013 says that "type Data.Employee is not defined". Here is my code for the sub:
Public Sub New(employee As Data.Employee)
            Me.Id = employee.Id
            Me.FirstName = employee.FirstName
            Me.LastName = employee.LastName
            Me.Title = employee.Title
            Me.BirthDate = employee.BirthDate
            Me.City = employee.City
        End Sub

One suggestion made by VS2013 was to change it to Model.Employee or just Employee which removed the error, but I don't seem to be able to get the grid to work. I've checked what's being sent and received in the network tab of the developer tools, and for api/employees I'm getting a 500 server error. In the javascripts response body, I can see the data being sent but it isn't populating the grid. I've been going through the code and can't see quite what's going wrong. If you need anymore info or code snippets I'll post them in a reply. Thanks in advance!

No answers yet. Maybe you can help?

Tags
Getting started with ASP.NET
Asked by
John
Top achievements
Rank 1
Share this question
or