Custom Advanced Insert Template With autopostback dropdowns

4 posts, 0 answers
  1. Bex
    Bex avatar
    53 posts
    Member since:
    Jul 2011

    Posted 09 Oct 2012 Link to this post


    I am trying to create a custom insert template.
    When a user adds an appointment they assign it to other users and I am trying to add the ability to narrow down the users via dropdowns within the template.
    I have two dropdowns, Organisation and Section, organisation posts back to populate the sections, then when a section is selected it populates a users checkboxlist based on the results.

    In the AdvancedControlsPanel I have the following:
    <asp:Panel runat="server" ID="AdvancedControlsPanel" CssClass="rsAdvMoreControls">
                     <asp:Panel runat="server" ID="pnlUsers">
                                    Users:</label><br />
                                Search for users
                                <asp:DropDownList ID="ddlOrganisation" runat="server" OnSelectedIndexChanged="ddlOrganisation_SelectedIndexChanged"
                                <asp:DropDownList ID="ddlSections" runat="server" OnSelectedIndexChanged="ddlSections_SelectedIndexChanged"
                                <asp:CheckBoxList runat="server" ID="chkUsers">
                            <asp:Panel runat="server" ID="ResourceControls">

    When the postback happend all the rest of the controls in the insert window blanked so I tried putting these in an ajaxpanel and registering it with the scriptmanager as it was saying it needed registering when the dropdown did the autopostback.
    I did this on the advanced form page load like so 

    but I got an error saying
    script controls may not be registered before PreRender

    I also tried using a ajaxmanager proxy against the dropdowns but this just seemed to replicate the controls down the page.

    My main page has a RadAJaxManager on it and the radscheduler is ajaxified.

    Is there any examples anywhere of how I can get this to work?
    I know its a problem with my ajax but I can't get my head round it! 


  2. Bex
    Bex avatar
    53 posts
    Member since:
    Jul 2011

    Posted 10 Oct 2012 Link to this post

    Having dug around a bit more I can see my problem isn't as simple as it appeared.
    I have ran the examples and added my code standalone and it all works. It is something to do with the way I have everything set up.
    I plan on compiling it all in a small project and creating a support ticket.
  3. Kate
    Kate avatar
    1898 posts

    Posted 12 Oct 2012 Link to this post

    Hi Becky,

    Please take your time. We will be happy to help you once we have the runnable project that we can inspect locally.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  4. Steve
    Steve avatar
    3 posts
    Member since:
    Feb 2007

    Posted 12 Oct 2012 Link to this post

    The support ticket has been submitted!
Back to Top