RadGrid hide wrapped text

2 posts, 0 answers
  1. Silviu
    Silviu avatar
    62 posts
    Member since:
    Feb 2015

    Posted 22 Jun 2015 Link to this post

    I have a RadGrid with many columns but one column has a lot of text and I want its width to be 150px.

    I do not want it to wrap to the next line, it needs to be one line but it must hide all of the wrapped text.

    By hide I mean the user should be able to drag the size of the column and if they make it bigger more text can be visible.

    How is that achieved?

  2. Eyup
    Admin
    Eyup avatar
    3757 posts

    Posted 25 Jun 2015 Link to this post

    Hi Silviu,

    You can prevent the wrapping using the following approach:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/no-wrap-for-grid-cell-content

    Then, you can enable the ClipCellContentOnResize to achieve the requested functionality:
    http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/column-row-resize-reorder/defaultcs.aspx

    Hope this helps.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top