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

Client-side binding...sending params

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 19 Apr 2010, 02:35 PM
Ok so I have the code to send a param over to eh grids webservice

//Send the parameters 
            function OnDataBinding(sender, args) { 
                var methodArguments = args.get_methodArguments(); 
 
                var myMethodArguments = methodArguments; 
                myMethodArguments.someParameter = "test"
 
                args.set_methodArguments(myMethodArguments); 
            } 

How though, do I consume this on the webservice?
(here's my definition)
    [WebMethod(EnableSession = true)] 
    [ScriptMethod] 
    public Dictionary<stringobject> GetOutstandingApprovalsData(int startRowIndex, int maximumRows, List<GridSortExpression> sortExpression, List<GridFilterExpression> filterExpression) { 
        Dictionary<stringobject> data = new Dictionary<stringobject>(); 




1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 19 Apr 2010, 03:31 PM
Hi Steve,

Add "someParameter" parameter to your GetOutstandingApprovalsData method.

Regards,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Nikolay Rusev
Telerik team
Share this question
or