Sunday, March 11, 2012

CascadingDropDown and applying attributes - Help

Jax67:

Is there an event I can hook into informing me that the dropdownlist has been populated?

Yes, you can make use of populated event of the cascadingDropDownExtender.

For example:

function pageLoad()
{
// register event handler
$find("distinct behavior id of extender").add_populated(onPopulated);
}

function onPopulated()
{
// this function will be fired after the DDL has been populated
}


Raymond, thanks for the help. I can't seem to get the onPopulated event to fire. I'm doing everything like you show but event just won't fire. I'm using the BehavorID of the CascadingDropDown in $find but it just won't fire. Does it matter that I have another CDD tied to the one I'm trying to hook into?

Thanks again.

Update - I did get it to work. I had an alert() in the pageLoad and that seemed to have been suppressing the alert() in the onPopulated event.

No comments:

Post a Comment