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

[Solved] Sending Additional Parameters to WCF Service

1 Answer 88 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.
Kevin
Top achievements
Rank 1
Kevin asked on 28 Oct 2011, 07:27 PM
My service method accepts the following parameters:

public GridModel GetPlanMembers(GridState state, Int32 benefitYear)

How can I wire up the grid component to send the parameter benefitYear when the grid is refreshed or paged?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 31 Oct 2011, 03:23 PM
Hello Kevin,

 For such scenario, you need to use the OnDataBinding event handler.
e.g.

function onDataBinding(e) {
     e.data = {
          benefitYear: 1999
     }
}


Regards,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or