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

RadGrid bound to WCF Web Service - Providing extra parameters

5 Answers 185 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arthur Rogers
Top achievements
Rank 1
Arthur Rogers asked on 24 Aug 2009, 10:26 AM

I'm using the same functionality as outlined in "RadGrid bound to WCF Web Service" sample. In that sample the client binding section is as such
          <ClientSettings>
                <DataBinding SelectMethod="GetDataAndCount" Location="GridWcfService.svc"
                    SortParameterType="Linq" FilterParameterType="Linq">
                </DataBinding>
            </ClientSettings>

However I have a need to send extra parameters in that GetDataAndCount() function. I don't see any way to intercept this call on the client side and provide the necessary information.

Can you please advise?

5 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 25 Aug 2009, 10:14 AM
Hello Arthur,

In order to pass additional parameters when using declarative data binding, you should use client-side DataBinding event. Please refer to this online example for more details on how to achieve this (there is a sample code in the handlers implementation which demonstrates the needed steps).

Regards,
Rosen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sathyan
Top achievements
Rank 1
answered on 27 Oct 2009, 02:48 PM
Hi Rosan,

We are using Q3 2009 ASP.NET Ajax Rad Controls and we get the same error when we use 

 

<FONT color=#2b91af size=2>  
<P>RadGrid</FONT><FONT size=2>.GetBindingData</FONT></P

Question Is : Is this method directly available for us to call or do we have to define this method?


We have reference for Telerik.Web.UI, what else is needed?

Appreciate your quick reply,

Thanks,
Sathyan

 

0
Rosen
Telerik team
answered on 30 Oct 2009, 09:39 AM
Hi Sathyan,

In order to use RadGrid's static GetBindingData method you should use RadControls for ASP.NET AJAX assemblies build against .NET 3.5.  For more information on assemblies versions please refer to this help topic http://www.telerik.com/help/aspnet-ajax/using-radcontrols-net20-30-35-projects-vs2008.html

Sincerely yours,
Rosen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 23 May 2012, 06:03 PM
Double Post Because of Error
0
James
Top achievements
Rank 1
answered on 23 May 2012, 06:04 PM
I've Looked at the declarative binding example but haven't been able to figure out how to pass additional arguments.

I've used the code as described and cannot get it to work.
// construct your own arguments
// var myMethodArguments = new Object();
// myMethodArguments.myArgumentName = "myArgumentValue";
// args.set_methodArguments(myMethodArguments);

I'm using a WebMethod I want to pass additional arguments to the web methods.

[WebMethod(EnableSession = true)]
 public Dictionary<string, object> GetApplicationQuotes(int startRowIndex, int maximumRows, string sortExpression, string filterExpression, object myMethodArguments)
{
    .....
}

Thank you,
James
Tags
Grid
Asked by
Arthur Rogers
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Sathyan
Top achievements
Rank 1
James
Top achievements
Rank 1
Share this question
or