Currently I'm creating a MVC application in VB.NET (3.5) which is kinda suckage i know but i need to do this for my trainee job. I'm quite happy and far with implementing the gridview only i have some trouble with the command buttons. Let me explain to you:
Dim gridBuilder = Html.Telerik().Grid(Model)
gridBuilder.Name(
"Grid")
gridBuilder.DataKeys(
Function(keys) keys.Add(Function(value) value.Id))
gridBuilder.DataBinding(
Function(binding) binding.Server().Update("UpdateEmployee", "User").Select("DetailsEmployee", "User"))
This is the first section of the grid. The wierdest thing what happened is when i only apply the update to the bind inline editing is available. So i though hey lets add select which will redirect me to the details page. It worked only the update command button redirects also to the detailsemployee page (there is my problem)?
Ok, because the lack of lambda expressions (multiline) in VB.NET (3.5) i had to add the command buttons like this:
gridBuilder.Columns(
Function(columns) columns.Command(Function(o) o.Select()).Width(0))
gridBuilder.Columns(
Function(columns) columns.Command(Function(o) o.Edit()).Width(0))
Well, both show up and are clickable but both redirects to the detailsemployee page. I think that the problem is VB.NET instead of Telerik. I hope you guys can show me in the right direction.
Kind regards,
Michiel Peeters