Hi there
I've got a small cosmetic problem regarding the RadTextBox (and possibly others).
Generally all of my controls are 500px wide (translated to 497px), which is set on the Width-property of the controls
Some of controls are hidden through CSS at page load in the code-behind using control.Style[HtmlTextWriterStyle.Display] = "none".
This works as expected, but when I through JavaScript shows the controls by doing
$get("<%=control.ClientID%>").style.display = "";
the controls shows to be 3px wider that the rest of the controls.
It looks like the controls are compensating for the borders when they are rendered vissible, but this doesn't seem to happen when they are hidden.
Is there any way I can force specific controls to calculate their correct widths on page load, even though they're hidden, perhaps through the clientside pageLoad event?
I've got a small cosmetic problem regarding the RadTextBox (and possibly others).
Generally all of my controls are 500px wide (translated to 497px), which is set on the Width-property of the controls
Some of controls are hidden through CSS at page load in the code-behind using control.Style[HtmlTextWriterStyle.Display] = "none".
This works as expected, but when I through JavaScript shows the controls by doing
$get("<%=control.ClientID%>").style.display = "";
the controls shows to be 3px wider that the rest of the controls.
It looks like the controls are compensating for the borders when they are rendered vissible, but this doesn't seem to happen when they are hidden.
Is there any way I can force specific controls to calculate their correct widths on page load, even though they're hidden, perhaps through the clientside pageLoad event?