Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
HeaderStyleDefault.Wrap - Text only wraps on Postback
posted

Hi,

 We have a strange issue with the HeaderStyleDefault.Wrap property.  This value is set to true as follows;

<HeaderStyleDefault BackgroundImage="/ig_common/images/Themes/Aero/grid_header_bg.jpg"

BorderStyle="None" Cursor="Hand" Font-Bold="True" Font-Names="Trebuchet MS,Verdana,Arial,sans-serif"

Font-Size="X-Small" ForeColor="#555555" Height="23px" HorizontalAlign="Left" Wrap="true">

<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />

<Padding Left="5px" />

</HeaderStyleDefault>

However, the column header text only wraps if a postback event has occured.  If the grid is created when the page is first loaded the text never wraps.

We have also tried setting the wrap value to true within various stages of the page lifecycle such as CreateChildControls, OnIt, PageLoad and also the Infragistics event UltraWebGrid1_InitializeLayout.

We presume the problem is due to the grid not knowing the width of the columns until it has been created, but thats a total guess.

Does anyone else use this feature?

 

Parents Reply Children