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

details

0 Answers 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kiang
Top achievements
Rank 1
Kiang asked on 16 Apr 2012, 08:21 AM
[SOLVED]

how can i do something like 
" @html.ActionLink("Delete","Delete", new { id = item.primaryID}) "

in telerik Grid View??

this is my code..

"
@(Html.Telerik().Grid(Model)
        .Name("Grid")
        .DataKeys(keys => keys.Add(c => c.ID))
        .DataBinding(dataBinding => dataBinding.Server()
            .Insert("Create","blmprefix")
            .Update("Edit", "blmprefix")
            .Delete("Delete", "blmprefix"))
            .Columns(columns => 
            {
                columns.Bound(o => o.Prefix).Width(100);
                columns.Bound(o => o.NextNumber).Width(100);
                columns.Bound(o => o.RecordStatus).Width(50);
                columns.Bound(o => o.LastUpdateDate).Width(200);
                columns.Bound(o => o.LastUpdateUserId).Width(100);
                columns.Command(cmd => cmd.Edit().ButtonType(GridButtonType.Text)).Title("Edit");
                columns.Command(cmd => cmd.Delete().ButtonType(GridButtonType.Text)).Title("Delete");
            })
        .Pageable()
        .Sortable()
)
"
Tags
General Discussions
Asked by
Kiang
Top achievements
Rank 1
Share this question
or