This question is locked. New answers and comments are not allowed.
Hi
I'm really struggling with getting this grid to work in VB
I'm using .net3.5 MVC2 vs2008 visual basic
http://demos.telerik.com/aspnet-mvc/grid/ajaxbinding
Can you please help me or is there a version of this in VB.
The closest that I have is below -- Is it becasue I'm passing in the wrong object?
Thanks
I'm really struggling with getting this grid to work in VB
I'm using .net3.5 MVC2 vs2008 visual basic
http://demos.telerik.com/aspnet-mvc/grid/ajaxbinding
Can you please help me or is there a version of this in VB.
<%= Html.Telerik().Grid<Order>() .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Grid")) .Name("Grid") .Columns(columns => { columns.Bound(o => o.OrderID).Width(81); columns.Bound(o => o.Customer.ContactName).Width(200); columns.Bound(o => o.ShipAddress); columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(100); })%>The closest that I have is below -- Is it becasue I'm passing in the wrong object?
<%@ Page Language="VB" Inherits="System.Web.Mvc.ViewPage(Of Customers)" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Index</title>
<%=Html.Telerik().StyleSheetRegistrar() _
.DefaultGroup(Function(group) group.Add("2012.1.214/telerik.common.css")) _
.DefaultGroup(Function(group) group.Add("2012.1.214/telerik.hay.min.css"))
%>
</head>
<body>
<div>
<%=Html.Telerik().Grid(Model).Name("Grid") _
.DataBinding(Function(DataBinding As Object) DataBinding.Server() _
.Select("Details", "MessageDefinition"))
%>
</div>
<% Html.Telerik().ScriptRegistrar().Render() %>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Index</title>
<%=Html.Telerik().StyleSheetRegistrar() _
.DefaultGroup(Function(group) group.Add("2012.1.214/telerik.common.css")) _
.DefaultGroup(Function(group) group.Add("2012.1.214/telerik.hay.min.css"))
%>
</head>
<body>
<div>
<%=Html.Telerik().Grid(Model).Name("Grid") _
.DataBinding(Function(DataBinding As Object) DataBinding.Server() _
.Select("Details", "MessageDefinition"))
%>
</div>
<% Html.Telerik().ScriptRegistrar().Render() %>
</body>
</html>