Hi
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:
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
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!
Bex
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"> <label> Type: </label> <!----> <asp:Panel runat="server" ID="pnlUsers"> <label> Users:</label><br /> Search for users <asp:DropDownList ID="ddlOrganisation" runat="server" OnSelectedIndexChanged="ddlOrganisation_SelectedIndexChanged" AutoPostBack="true"> </asp:DropDownList> Sections <asp:DropDownList ID="ddlSections" runat="server" OnSelectedIndexChanged="ddlSections_SelectedIndexChanged" AutoPostBack="true"> </asp:DropDownList> <asp:CheckBoxList runat="server" ID="chkUsers"> </asp:CheckBoxList> </asp:Panel> <asp:Panel runat="server" ID="ResourceControls"> </asp:Panel> </asp:Panel>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
sm1.RegisterScriptControl(ajaxpnl);but I got an error saying
script controls may not be registered before PreRenderI 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!
Bex