This question is locked. New answers and comments are not allowed.
I am very new to the Telerik MVC controls and have been implementing the Grid on a View, mostly with success. I am having one small problem in the I can't seem to get ClientTemplate to render correctly on initial load, basically it come up with the ID value. When I refresh it display "View". I am not sure if i am missing something here or maybe because using VB in VS2010.
Ideally I would like to use the line above or one like in the Toolbar but I beleive from searching this will be in a future realease.
I hope this is clear.
John
| <% Html.Telerik().Grid(Model()) _ |
| .Name("Grid") _ |
| .ToolBar(Sub(commands) |
| commands.Custom() _ |
| .Action("Create", "User") _ |
| .Text("Add New") |
| End Sub) _ |
| .DataKeys(Function(keys) keys.Add(Function(c) c.UserID)) _ |
| .Columns( _ |
| Sub(columns) |
| 'columns.Template(Function(o) Html.ActionLink("Edit", "Edit", New With {.id = o.UserID})) |
| columns.Bound(Function(o) o.UserID()).ClientTemplate("<a href='/User/Details/<#= UserID #>'>View</a>").Filterable(False).Sortable(False).Title("Action") |
| columns.Bound(Function(o) o.UserID()).Width(40) |
| columns.Bound(Function(o) o.Organisation()).Width(200) |
| columns.Bound(Function(o) o.Security()) |
| columns.Bound(Function(o) o.LastName()) |
| columns.Bound(Function(o) o.FirstName()) |
| columns.Bound(Function(o) o.OtherNames()) |
| columns.Bound(Function(o) o.Status()) |
| columns.Bound(Function(o) o.StartDate()).Format("{0:dd/MM/yyyy}").Width(120) |
| columns.Bound(Function(o) o.EndDate()).Format("{0:dd/MM/yyyy}").Width(120) |
| columns.Bound(Function(o) o.HTMLEmail()) |
| End Sub) _ |
| .DataBinding(Sub(dataBinding) |
| dataBinding.Server().Select("Index", "User") |
| dataBinding.Ajax().Select("_Index", "User") |
| End Sub) _ |
| .Scrollable(Function(scrolling) scrolling.Enabled(True)) _ |
| .Sortable(Function(sorting) sorting.Enabled(True)) _ |
| .Pageable(Function(paging) paging.Enabled(True)) _ |
| .Filterable(Function(filtering) filtering.Enabled(True)) _ |
| .Groupable(Function(grouping) grouping.Enabled(True)) _ |
| .Footer(True) _ |
| .Render()%> |