I am trying the simple example on the site (Ajax Grid Biding and Editing) and the Grid isn't showing me any data. I tried the server binding and it works. Below is my code.
It's the simple example on the site, adapted on my model. That's all. Not showing data. I checked and the Json(result) returns data. What could it be the problem?
10 Answers, 1 is accepted
I reviewed the attached code, but could not find the reason for this behavior just by looking at it. Could you please provide runnable project where the issue is reproduced? This makes it is much easier to focus on the particular issue which usually leads to its faster resolving.
Thanks for your answer. I don't know if giving you the solution will help because you will still not have the database (from which the model is generated) so you will still not have any result to see.
If you want, and you think it will help, I can give you any kind of source-code or source-code files.
Now I need to find the solution, any suggestions?
I am afraid that parsing the nested items type is currently is not supported, however looking at the attached code snippets this shouldn't be related. Please provide runnable project where the issue is observed so we can advice you further.
Please note that as my colleague Alexander mention in his previous posts - in current case we can't help much without a runable project that reproduces the issue on our side. I would suggest to check this blog post which provides more information about how to isolate an issue in example project.
I am having exactly the same problem, and i also found out that when i turn Lazy Loading OFF, my data are showing up.
Here is a code part
In my Controller
Function Zaposleni_Read(request As DataSourceRequest) As ActionResult
Using db As New Kontrolori_smeneEntities
Dim result As List(Of Zaposleni) = db.Zaposlenis.ToList
In my View
Html.Kendo().Grid(Of TelerikMvcApp3.Zaposleni)() _
End Sub) _
d.Ajax().Read(Function(read) read.Action("Zaposleni_Read", "Zaposleni"))
End Function) _
Any help why is this related to Lazy Loading?
From the provided information it's not clear for us what is the exact reason for current behavior. That why I would ask you to open a new support thread and provide the error message that you are receiving on the server / client side. Also if possible please provide runable project where the issue is reproduced - this would help us pinpoint the exact reason for this behavior.