开发者

AJAX CascadingDropdown - Setting the selected index

I have a CascadingDropDown on an ASP.NET page.

Now, the prompt text is "Select State". (list of states).

However, on a different version of this page (ie querystring), i might want to set the selected index to "California" for example.

How can i do this?

The web service used by the ajax control (ie GetStates) gets invoked at the same time the jquery document.ready function is triggered (ie asynchronously).

So when i try and set the selected index in jquery, the i开发者_如何转开发tems are not yet bound.

Is there a way to attach a handler to the ajax dropdown so that i can set the selected index once the webservice call has completed, and the items are bound?


So instead of trying to get tricky, i ended up replacing the CDDL with regular client-side dropdownlists and extending them with jQuery/AJAX.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜