(this.radPageView1.ViewElement as RadPageViewStripElement).AllowEdit = true;
(this.radPageView1.ViewElement as RadPageViewStripElement).NewItemVisibility = StripViewNewItemVisibility.End;
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.