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:
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.