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

[Solved] select command button with WebService dataBinding

0 Answers 41 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.
Sean
Top achievements
Rank 1
Sean asked on 01 Feb 2012, 11:02 PM

Hi,

Is there any samples that shows how to have a Select command button for the grid that has WebService (wcf) databinding?
Here is the working one for delete button but for select i cant find a way to submit the current binded item to a web service method!

@(Html.Telerik().Grid<MyType>()
        .Name("TestGrid")
        .DataKeys(keys => keys.Add(p => p.Id))
        .Columns(columns =>
        {
            columns.Bound(p => p.FileSize).Width(100);
            columns.Command(commands => commands.Delete());
        })
        .DataBinding(dataBinding => dataBinding.WebService()
            .Delete("~/Models/MyTestSrv.svc/Delete"))
        .Pageable()
)





Tags
Grid
Asked by
Sean
Top achievements
Rank 1
Share this question
or