When I show some text and set IsWordWrapEnabled to true... the horizontalscrollbar disappears
but when I set IsWordWrapEnabled to false after this, the horizontalscrollbar does not appear
in your code I saw this:
But this .Auto property doesn't seem te work.
Further more, next to this problem, I'd like to set this horizontalscrollbar to appear and disappear depending on the text width...
but I'm afraid this would be depending on the .auto property
Hi Dennis,
Thank you for the provided details.
Indeed, the horizontal scrollbar does not appear again when disabling the word wrap. I can confirm that this needs to be handled on our side. I will approve the Feedback Item and change its status to Unplanned.
As a workaround, you can set the HorizontalScrollBarVisibilityProperty to visible when the IsWordWrapEnabled is set to false:
private void radCheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (this.radCheckBox1.CheckState == CheckState.Checked)
{
this.radSyntaxEditor1.IsWordWrapEnabled = true;
}
else
{
this.radSyntaxEditor1.IsWordWrapEnabled = false;
this.radSyntaxEditor1.SyntaxEditorElement.SetValue(RadSyntaxEditorElement.HorizontalScrollBarVisibilityProperty, ScrollBarVisibility.Visible);
}
}
I have updated your Telerik Points for bringing this to our attention.
Regards,
Dinko | Tech Support Engineer
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.