This is a migrated thread and some comments may be shown as answers.

Enabling Adding/Editing/Deleting in Grid

0 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Natalie
Top achievements
Rank 1
Natalie asked on 26 Jan 2011, 06:32 PM
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:

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!
Tags
Grid
Asked by
Natalie
Top achievements
Rank 1
Share this question
or