This question is locked. New answers and comments are not allowed.
Hi All,
I've finally got data in my grid, but I need to be able to add/edit/delete. Here's what my grid's code looks like:
I've tried adding .Editable(), but apparently I need to specify something in there, and it won't compile. Any ideas on how to do this in VB.NET? I tried using the code translator to translate from C# to VB, but when I pasted it in, it didn't work.
Thanks!
I've finally got data in my grid, but I need to be able to add/edit/delete. Here's what my grid's code looks like:
Dim
gridBuilder = Html.Telerik().Grid(Of StudentListStudent).Name(
"Grid"
).Pageable().Sortable()
'Add grid columns
gridBuilder.Columns(
Function
(columns) columns.Bound(
"LastName"
).Width(20).Title(
"LastName"
))
gridBuilder.Columns(
Function
(columns) columns.Bound(
"FirstName"
).Width(10).Title(
"First Name"
))
gridBuilder.Columns(
Function
(columns) columns.Bound(
"Initial"
).Width(5).Title(
"Init"
))
gridBuilder.Columns(
Function
(columns) columns.Bound(
"BirthDate"
).Width(10).Title(
"DOB"
))
gridBuilder.Columns(
Function
(columns) columns.Bound(
"Gender"
).Width(5).Title(
"Gender"
))
gridBuilder.Columns(
Function
(columns) columns.Bound(
"Grade"
).Width(5).Title(
"Grade"
))
'Render the grid
gridBuilder.BindTo(Model.StudentList.Student)
gridBuilder.Render()
I've tried adding .Editable(), but apparently I need to specify something in there, and it won't compile. Any ideas on how to do this in VB.NET? I tried using the code translator to translate from C# to VB, but when I pasted it in, it didn't work.
Thanks!