Vertical text ?

3 posts, 0 answers
  1. Ian
    Ian avatar
    20 posts
    Member since:
    Dec 2015

    Posted 08 Nov 2018 Link to this post

    Does this control - or any of the other WinForms table-style controls - have the ability to show vertical text?

    I have quite large tables, with 50-100 columns, and the column names are 30-80 chars long, so showing them Excel-style with text rotated 90 degrees would be perfect.

    I've not found any of the controls which can do this.

    Or is there some other way?

    Ideally, it would be in this Spreadsheet control, as it seems to be the fastest for loading the kinds of data I'm using.

  2. Hristo
    Admin
    Hristo avatar
    1507 posts

    Posted 09 Nov 2018 Link to this post

    Hello Ian,

    The RadSpreadsheet control does not currently support vertical text as Excel. I logged a feature request on our feedback portal, here: ADD. RadSpreadsheet - implement text orientation for cell content. I have also updated your Telerik points.

    I can suggest using the RadGridView control. Assuming that you would have a text box column with a large header, you can set the WrapText and Multiline properties of the column: 
    GridViewTextBoxColumn textBoxColumn = ((GridViewTextBoxColumn)this.radGridView1.Columns["Description"]);
    textBoxColumn.HeaderText = "DescriptionDescriptionDescriptionDescriptionDescriptionDescriptionDescriptionDescriptionDescriptionDescriptionDescriptionDescription";
    textBoxColumn.Multiline = true;
    textBoxColumn.WrapText = true;

    Additionally, you may want to auto-size the rows or increase the table header height: 
    //this.radGridView1.AutoSizeRows = true;
    this.radGridView1.TableElement.TableHeaderHeight = 80;

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Ian
    Ian avatar
    20 posts
    Member since:
    Dec 2015

    Posted 09 Nov 2018 in reply to Hristo Link to this post

    Thanks Hristo - I've tried all these options, but the header text has some long expressions, which don't wrap nicely - vertical text seems like the only solution.

    Hopefully your developers will pick up the feature request!

    Thanks for the advice - great support from Telerik, as always...

Back to Top