0

I have a CascadingDropDown control in my page. I want to do some jquery actions when the dropdown is populated. according to the documentation , there is a event called (populated) for that purpose. I added that code in my page:

function raise_populated() {
    alert()
}

and here is how i use the dropdown

<asp:DropDownList ID="listcat" runat="server" required></asp:DropDownList>
            <ajaxToolkit:CascadingDropDown ID="cdlisteCategorie" TargetControlID="listcat"  PromptText='Catégories'
                ServicePath="../Webservice/CategorieService.asmx"  ServiceMethod="GetCategories"  Category="IDCATS" runat="server" LoadingText="Chargement..."></ajaxToolkit:CascadingDropDown>

the raise_populated never fires.

Oumar Diarra
  • 355
  • 4
  • 16

1 Answers1

0

I've found the solution here

function pageLoad(sender, args)
{
    var cdd = $find("behaviorIDofCDD");
    cdd.add_populated(onPopulated);
}
function onPopulated()
{
    //any function to be called
} 
Oumar Diarra
  • 355
  • 4
  • 16