Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Controlling text wrap through a css class - is it possible?

Last post 07-30-2008 18:57 by Oscar Mora. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-30-2008 13:05

    • Oscar Mora
    • Top 150 Contributor
    • Joined on 06-09-2008
    • California, USA
    • Points 543

    Controlling text wrap through a css class - is it possible?

    Hello, 

    So far the only way I've found to enable or disable text wrap is using the GridItemStyle.Wrap property.

    Is there a way to enable or disable it using a css class in my css file and then setting the GridItemStyle.CssClass to that class?

    Thanks.

    Filed under: ,
    • Post Points: 20
  • 07-30-2008 13:17 In reply to

    Re: Controlling text wrap through a css class - is it possible?

    Answer

    Hello Oscar, 

    It's a bit hard to tell and really depends on the certain situation, but I can probably give you a clue that can get you started. You can play with the CSS

    white-space: nowrap; 

    attribute and see if it helps. Just be aware, that as with anything browser related, this has its cons and pros.

    http://snook.ca/archives/html_and_css/problems_using/ 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 20
  • 07-30-2008 18:57 In reply to

    • Oscar Mora
    • Top 150 Contributor
    • Joined on 06-09-2008
    • California, USA
    • Points 543

    Re: Controlling text wrap through a css class - is it possible?

    Answer

    Hey Rumen, i found a way.

    I can enable text wrapping defining white-space: normal; in the class assigned to the FrameStyle.CssClass.

    My first approach was seting it in the class assigned RowStyleDefault.CssClass. That one doesn't work.

    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems