Column Header - Vertical Text

3 posts, 0 answers
  1. neil
    neil avatar
    9 posts
    Member since:
    Nov 2016

    Posted 29 Oct 2019 Link to this post

    Hi

    I have tried to rotate the text in the column text as per your instructions on the web but it doesn't work, what am I doing wrong (VB Net)

     

         RadGridView1.ViewCellFormatting += radGridView1_ViewCellFormatting()
            RadGridView1.TableElement.TableHeaderHeight = 90
            RadGridView1.Rows(0).IsSelected = True

     

  2. neil
    neil avatar
    9 posts
    Member since:
    Nov 2016

    Posted 29 Oct 2019 in reply to neil Link to this post

    function is

     Private Sub radGridView1_ViewCellFormatting(ByVal sender As Object, ByVal e As CellFormattingEventArgs)
            Dim element As GridHeaderCellElement = TryCast(sender, GridHeaderCellElement)
            If element IsNot Nothing Then
                element.TextOrientation = Orientation.Vertical
                element.FlipText = True
            End If
        End Sub

  3. Nadya
    Admin
    Nadya avatar
    189 posts

    Posted 29 Oct 2019 Link to this post

    Hello Neil,

    As I can see from your second post you have already found out an appropriate solution to your problem. This is the right way. In order to specify the orientation of the column header cells, you should access the GridHeaderCellElement and set its TextOrientation property.

    Do not hesitate to contact us if you have other questions.

    Regards,
    Nadya
    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.
Back to Top