AJAX Causing Control to lose style

14 replies. Last post: March 22, 2010 3:19 AM by Handy Surya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I've got an ajax page that uses multiple webcombo controls; 5 total.  The main issue I'm having is on the post back of the controls when the control returns it causes all my other dropdowns to lose their dropdown arrow (goes to a 6 for the image) and the text font jumps to something like 12-14 pt.  For the initial ajax post back of the page, the controls keep their styles by using the following properties of the combos:

ddlState.AspNetAjaxSettings.UpdateControlScripts = true;

ddlState.AspNetAjaxSettings.UpdateControlStyles = true;

true;

ddlState.AspNetAjaxSettings.UpdateControlStyles = true;

true;

I've configured each combo to use these properties.  I have 3 combos that cascade from each other and this is where I start seeing the style go away; State, County, City controls.  Once the state is selected and the county list gets populated on the ajax post back, the styles for all my webcombo controls goes away.  For the 1 control that does not cascade to another control the styles remain. 

Additionally I've tried to wrap all the calls the properties above for all my webcombos into a single method in my code behind, and call it each time I post back using ajax for each control and this doesn't seem to affect the outcome. 

Any thoughts or solutions on getting this page to work as expected?

 
Best regards, Michael
All times are GMT -5. The time now is 11:00 PM.
Previous Next