Basically, I have pages with controls on them like this (I've left the properties out, for brevity):
<asp:Panel id="DataFormPanel">
<asp:Panel id="NamePanel">
<...controls here that I want to ajaxify...>
</asp:Panel>
<asp:Panel id="AddressPanel">
<cc1:RadCombobox id="Country_DDL" />
<asp:TextBox id="Addr1"/>
<cc1:RadComboBox id="State_DLL" />
<asp:TextBox id="PostalCode" />
<cc1:RadComboBox id="County_DDL" />
</asp:Panel>
</asp:Panel>
<asp:LinkButton id="save" />
- I'm using the AddAjaxSettings of the RadAjaxManager, to ajaxify controls.
- My goal in the above scenario would be to:
1. Ajaxify the ENTIRE DataFormPanel so that it updates when the user clicks the Save linkbutton (it becomes invisible).
2. Ajaxify the Country_DDL so that it updates ONLY the State_DLL when the selected value of Country_DDL changes.
3. Ajaxify the State_DDL so that it updates ONLY the County_DLL when the selected value of State_DDL changes.
- The reason why I want to only ajaxify the single DDL's above, is so that when a user selects a country and tabs to Addr1 textbox, they can enter a value in the textbox without having it "wiped out or cleared" when the ajax request comes back from the server and populates the State_DLL.
- In other words, my scenario calls for ajaxifying controls that are located within an ajaxified panel.
PROBLEMS:
- When I try to just ajaxify the separate DDL controls (Country so that it only updates State, and State so that it only updates County), I get ajax error messages telling me that I need to surround the State_DDL with another UpdatePanel.
- When I ajaxify Country_DDL and have it update the entire AddressPanel, then the State_DLL also updates the entire AddressPanel even though I have ajaxified it to ONLY update the County_DDL.
I'm looking for general guidance on how to ajaxify many individual controls, when they are included in an ASP Panel that is also ajaxified.
Thanks in Advance,
Brent
<asp:Panel id="DataFormPanel">
<asp:Panel id="NamePanel">
<...controls here that I want to ajaxify...>
</asp:Panel>
<asp:Panel id="AddressPanel">
<cc1:RadCombobox id="Country_DDL" />
<asp:TextBox id="Addr1"/>
<cc1:RadComboBox id="State_DLL" />
<asp:TextBox id="PostalCode" />
<cc1:RadComboBox id="County_DDL" />
</asp:Panel>
</asp:Panel>
<asp:LinkButton id="save" />
- I'm using the AddAjaxSettings of the RadAjaxManager, to ajaxify controls.
- My goal in the above scenario would be to:
1. Ajaxify the ENTIRE DataFormPanel so that it updates when the user clicks the Save linkbutton (it becomes invisible).
2. Ajaxify the Country_DDL so that it updates ONLY the State_DLL when the selected value of Country_DDL changes.
3. Ajaxify the State_DDL so that it updates ONLY the County_DLL when the selected value of State_DDL changes.
- The reason why I want to only ajaxify the single DDL's above, is so that when a user selects a country and tabs to Addr1 textbox, they can enter a value in the textbox without having it "wiped out or cleared" when the ajax request comes back from the server and populates the State_DLL.
- In other words, my scenario calls for ajaxifying controls that are located within an ajaxified panel.
PROBLEMS:
- When I try to just ajaxify the separate DDL controls (Country so that it only updates State, and State so that it only updates County), I get ajax error messages telling me that I need to surround the State_DDL with another UpdatePanel.
- When I ajaxify Country_DDL and have it update the entire AddressPanel, then the State_DLL also updates the entire AddressPanel even though I have ajaxified it to ONLY update the County_DDL.
I'm looking for general guidance on how to ajaxify many individual controls, when they are included in an ASP Panel that is also ajaxified.
Thanks in Advance,
Brent