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
130
Column Header Caption: Text Orientation in Degrees?
posted

I found a post from last year (January 2008) that helped with setting the text orientation within the header caption to be verticle (90 degrees).

This is how it can be done within the initialize layout sub, where oCol is my UltraWebGrid.UltraGridColumn:

oCol.Header.Style.CustomRules = "WRITING-MODE: tb-rl"

Now, my question is whether there is now a better way of doing this? And can you align/orient the text direction by degrees within the caption?

I have a lot of columns to show but if I can align each column's header caption to the vertical (or at an angle) then I can fit the entire grid on a single page. Note that I am using Infragistics2.WebUI.UltraWebGrid Version=7.3.20073.38 (for CLR 2.0). Just hoping for a better solution. I would imagine that other's would have need of this feature?

Thanks in advance!

Tina

 

Parents
No Data
Reply
  • 28464
    posted

    Hello Tina,

    UltraWebGrid does not have anything built-in to support that - so the solution with Css is the only one I can think of for vertical align. This actually is a limitation of HTML rendering I am afraid. Rotating the text with an angle is not supported for all browsers - IE browsers support DirectX transition filters that may support that. Other solutions suggest using images instead of text. More info on this topic can be found here:

    http://forums.digitalpoint.com/showthread.php?t=70168

     

     

Children