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

1 posts, 0 answers
  1. John
    John avatar
    2 posts
    Member since:
    May 2014

    Posted 09 May 2014 Link to this post

    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!
Back to Top