This question is locked. New answers and comments are not allowed.
Hi,
I am new to MVC, so maybe bear with me.
My grid displays users from the DB. I want to make it editable, so I followed the intructions in the help and videos.
So i set my datakeys like this:
.DataKeys(keys => keys.Add(u => u.UserId))
In my controller I get back my UserId.
Okay, but what I cant figure out is how to get the rest of my model (the user in this case)...
I can't update my DB if I don't have the other properties.
In an ordinary MVC app I would post back the object (User), but how do you do is using the Telerik grid?
Thanks!
I am new to MVC, so maybe bear with me.
My grid displays users from the DB. I want to make it editable, so I followed the intructions in the help and videos.
So i set my datakeys like this:
.DataKeys(keys => keys.Add(u => u.UserId))
In my controller I get back my UserId.
Okay, but what I cant figure out is how to get the rest of my model (the user in this case)...
I can't update my DB if I don't have the other properties.
In an ordinary MVC app I would post back the object (User), but how do you do is using the Telerik grid?
Thanks!