Unplanned
Last Updated: 15 Mar 2023 15:12 by ADMIN
Troy
Created on: 15 Mar 2023 14:32
Category: SyntaxEditor
Type: Bug Report
2
RadSyntaxEditor: Bottom scrollbar does not reappear, when disabling the word wrapping

Use the following code in the project:

    Private Sub btnToggleWW_Click(sender As Object, e As EventArgs) Handles btnToggleWW.Click
        RadSyntaxEditor1.IsWordWrapEnabled = Not RadSyntaxEditor1.IsWordWrapEnabled
        Me.Text = RadSyntaxEditor1.IsWordWrapEnabled.ToString()

    End Sub

When you enable the word wrapping, the horizontal scrollbar is collapsed:

However, when the word wrapping is disabled, the scrollbar doesn't reappear anymore:

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 15 Mar 2023 15:12

Hi, Troy,

Thank you for bringing this to our attention.

The possible solution that I can suggest is to keep the scrollbar state to auto whenever the IsWordWrapEnabled property is managed: 

Me.RadSyntaxEditor1.SyntaxEditorElement.HorizontalScrollBarVisibility = Telerik.WinControls.SyntaxEditor.UI.ScrollBarVisibility.Auto 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.