Unplanned
Last Updated: 20 May 2024 14:22 by ADMIN
Martin
Created on: 20 May 2024 13:59
Category: PageView
Type: Bug Report
0
RadPgeView: Editing page tab does not expand tab as the user is typing when using Office2013Light theme

(this.radPageView1.ViewElement as RadPageViewStripElement).AllowEdit = true;
(this.radPageView1.ViewElement as RadPageViewStripElement).NewItemVisibility = StripViewNewItemVisibility.End;

 

 

1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 20 May 2024 14:22

Hello, Martin,

Use the following workaround:

private void Form2_EditorInitialized(object sender, RadPageViewEditorEventArgs e)
{
    var editor = (this.radPageView1.ViewElement as RadPageViewStripElement).ActiveEditor as PageViewItemTextEditor;
    editor.ValueChanged += Editor_ValueChanged;
    var element = editor.EditorElement as PageViewItemTextEditorElement;
    element.TextChanged += Element_TextChanged;
}

private void Element_TextChanged(object sender, EventArgs e)
{
    var element = sender as PageViewItemTextEditorElement;
    string text = element.Text;
    var textSize = TextBoxControlMeasurer.MeasureText(text, element.Font);
    element.MinSize = new Size(textSize.Width + 4, 0);

    element.Parent.MinSize = new Size(textSize.Width + 20, 0);
}

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