views:

158

answers:

1

Can i change the WebMethod of the Cascading on a client side event?

A: 

I needed to do a similar thing recently, where i needed to set the contextKey for the CDDL web service in JS on the selectedIndexChanged event of a dropdown.

All of the properties of the CDDL are exposed as .get_ and .set_ calls..

I dont know the syntax for regular JS, but with jquery i did this which worked well:

$('#mycddl').set_contextKey('valuetoset')

So id assume it could be .set_serviceMethod('value') ?

Pop open firebug (or your tool of choice), and inspect the properties.

RPM1984