This question is locked. New answers and comments are not allowed.
I see that when using Ajax databinding, you are able to send additional arguments to the service, however i do not see a way to send an argument to a websevice.
Here is my code for the grid and the webservice I need to be able to pass the stateid to the webservice (its currently hard coded, but would need to be a parameter)
Is there a way to do this? If not, this is a big time deal breaker!!
Here is my code for the grid and the webservice I need to be able to pass the stateid to the webservice (its currently hard coded, but would need to be a parameter)
| <%= Html.Telerik().Grid<BcMemProxyStub>() |
| .Name("Members") |
| .HtmlAttributes( new {style = "width:805px;"}) |
| .ToolBar(commands => commands.Custom().Url("Security.mvc/MemberImport").Text("Batch Import").HtmlAttributes(new { @class = "popup" })) |
| .Columns(columns => |
| { |
| columns.Bound(m => m.MemID).Width(85) |
| .ClientTemplate("<div><a href='Security.mvc/Member/<#=MemID#>' class='popup'><#= MemID #></a></div>"); |
| columns.Bound(m => m.Login).Width(150); |
| columns.Bound(m => m.Fname).Width(150); |
| columns.Bound(m => m.Lname).Width(150); |
| columns.Bound(m => m.Memail).Width(270); |
| columns.Bound(m => m.MemID).Filterable(false).Title(" ").Width(10) |
| .ClientTemplate("<div><a href='/SiteAdmin/Models/SecurityService.svc/MemberDelete?ID=<#=MemID#>' class='action'><img border=0 src=\"/siteadmin/content/images/cancel.png\"/></a></div>"); |
| }) |
| .DataBinding(dataBinding => dataBinding.WebService().Select("~/Models/SecurityService.svc/Members")) |
| .Sortable() |
| .Pageable(paging => paging.PageSize(20)) |
| .Filterable() |
| .ClientEvents(events => events |
| .OnDataBound("WireActionLinks") |
| ) |
| %> |
| [OperationContract] |
| public GridModel Members(GridState state) |
| { |
| var bcms = new BcMemCollection(); |
| bcms.LoadByState(52); |
| return new BcMemCollectionProxyStub(bcms).Collection.ToGrid(state); |
| } |