Populating CascadingDropDown before Page_Load

Last post 05-14-2008 2:13 AM by Jonathan Shen – MSFT. 1 replies.

Sort Posts:

  • Populating CascadingDropDown before Page_Load

    05-08-2008, 6:14 AM
    • Loading...
    • jpof
    • Joined on 05-08-2008, 10:00 AM
    • Posts 1

    Hey there.

    I've been looking like crazy for a way to implement this kind of behavior, but I can't seem to find one.

     

    I have a group of CustomControls inserted into a page, each of them using 6 or 7 CascadingDropDowns.

    In the Page_Load event of the main page, I'm editing each CustomControl with the respective groups of CascadingDropDown.SelectedValue.

    The REAL problem here is that, from what I could find with breakpoints, the CascadingDropDowns only populate (through WebService, since it's the only way for CustomControls) after the Page_Load is through, so, after the main stuff shows, it shows the CascadingDropDowns loading. As you might imagine, that loading can take a while, with up to 7 CascadingDropDowns per line. So I'd really like a way to get the populating done during or before the Page_Load event.

    What really baffles me is that, in the old Atlas Toolkit version logs, it says the populating started being done before Page_Load.. is there anything I need to do to trigger that kind of behavior? Or anything else I can do to achieve it, apart from editing the Extender myself?

    Thanks in advance, and congratulations on a very interesting AJAX toolkit.

  • Re: Populating CascadingDropDown before Page_Load

    05-14-2008, 2:13 AM
    Answer

    Hi Jpof,

    As far as I know,   CascadingDropDownExtender creates its instance as soon as all the contents render to client , and then it will call its WebService to generates its contents on client.  So I'm afraid that your goal is not achievable.

    Best regards,

    Jonathan

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (2 items)