Desislava Yordanova
Team Member

FIX. RadListView - ActiveEditor shouldn't be null in the ItemValueChanging

To reproduce: run the attached sample project. Select an item and press F2, select a new item from the drop-down. You will encounter an error because the ActiveEditor is now null in the ItemValueChanging event.

Workaround: in the EditorInitialized event you can subscribe to the RadDropDownListElement.SelectedIndexChanging event:

private void radListView1_EditorInitialized(object sender, ListViewItemEditorInitializedEventArgs e)
{
ListViewDropDownListEditor editor = e.Editor as ListViewDropDownListEditor;
if (editor==null)
{
return;
}
RadDropDownListElement dropdown = (RadDropDownListElement)editor.EditorElement;
dropdown.SelectedIndexChanging-=dropdown_SelectedIndexChanging;
dropdown.SelectedIndexChanging+=dropdown_SelectedIndexChanging;
}


Bug Report by Desislava Yordanova Status: New Comments: 0 Attachments: 1 Category: RadListView Scheduled for: Not Scheduled Last update: 2018-09-25T07:21:54 by Desislava Yordanova
0
Hristo Merdjanov
Team Member

ADD. RadRichTextEditor - add support for SECTIONPAGES field

The field result shows the number of pages the current section contains.
Feature Request by Hristo Merdjanov Status: Approved Comments: 0 Category: RadRichTextEditor Scheduled for: Not Scheduled Last update: 2018-09-25T07:10:59 by Hristo Merdjanov
0
Hristo Merdjanov
Team Member

FIX. RadControl - font set with a GraphicsUnit.Pixel is measured and painted as with GraphicsUnit.Point

How to reproduce: this.radLabel1.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);

Workaround:
public class MyRadLabel : RadLabel
{
public override string ThemeClassName
{
get
{
return typeof(RadLabel).FullName;
}
}

protected override RadLabelElement CreateLabelElement()
{
return new MyRadLabelElement();
}
}

public class MyRadLabelElement : RadLabelElement
{
protected override Type ThemeEffectiveType
{
get
{
return typeof(RadLabelElement);
}
}

protected override void CreateChildElements()
{
base.CreateChildElements();

MyTextPrimitive textPrimitive = new MyTextPrimitive();
textPrimitive.Alignment = ContentAlignment.MiddleLeft;
textPrimitive.BindProperty(TextPrimitive.TextProperty, this, RadLabelElement.TextProperty, PropertyBindingOptions.TwoWay);
textPrimitive.BindProperty(AlignmentProperty, this, RadLabelElement.TextAlignmentProperty, PropertyBindingOptions.OneWay);
textPrimitive.SetValue(ImageAndTextLayoutPanel.IsTextPrimitiveProperty, true);
textPrimitive.AutoEllipsis = true;
textPrimitive.TextWrap = true;

ImageAndTextLayoutPanel layoutPanel = this.FindDescendant<ImageAndTextLayoutPanel>();
if (layoutPanel != null)
{
layoutPanel.Children.RemoveAt(1);
layoutPanel.Children.Add(textPrimitive);
}
}
}

public class MyTextPrimitive : TextPrimitive
{
public override Font GetScaledFont(float scale)
{
Screen screen = Screen.PrimaryScreen;
SizeF startScale = new SizeF(1.0f, 1.0f);
if (RadControl.EnableDpiScaling)
{
startScale = NativeMethods.GetMonitorDpi(screen, NativeMethods.DpiType.Effective);
}

SizeF paintScale = new SizeF(scale / startScale.Width, scale / startScale.Height);
Font font = this.Font ?? Control.DefaultFont;
string key = paintScale.ToString() + font.FontFamily.Name + font.Size + font.Style.ToString() + font.Unit.ToString() + font.GdiCharSet.ToString() + font.GdiVerticalFont.ToString();

if (this.ScaledFontsCache.ContainsKey(key))
{
return this.ScaledFontsCache[key];
}

Font scaledFont = new Font(font.FontFamily, font.Size * paintScale.Height, font.Style, font.Unit, font.GdiCharSet, font.GdiVerticalFont);
this.ScaledFontsCache.Add(key, scaledFont);

return scaledFont;
}
}
Bug Report by Hristo Merdjanov Status: Approved Comments: 0 Category: TPF Scheduled for: R3 2018 SP1 Last update: 2018-09-25T07:01:54 by Hristo Merdjanov
0
Desislava Yordanova
Team Member

FIX. RadPageView - incorrect layout in RightToLeft mode with Navigation view (Hamburger menu)

When you set the RightToLeft property to Yes, you will obtain incorrect layout. Please refer to the attached gif file.
Bug Report by Desislava Yordanova Status: New Comments: 0 Attachments: 1 Category: RadPageView Scheduled for: Not Scheduled Last update: 2018-09-24T10:27:15 by Desislava Yordanova
0
Desislava Yordanova
Team Member

FIX. RadGridView - row's height is not correctly adjusted when the AutoSizeRows property is enabled and the grid's Font is changed

To reproduce: run the attached sample project and activate the editor for the cell. You will notice that the row's height is now adjusted and single line text is displayed. It seems that the issue occurs because of the set Font property of the grid.

Workaround:
private void RadGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
e.Row.MinHeight = e.Row.Height + 3;
RadTextBoxEditor tbEditor = e.ActiveEditor as RadTextBoxEditor;
if (tbEditor != null)
{
tbEditor.Multiline = true;
}
}

private void radGridView1_CellEndEdit(object sender, GridViewCellEventArgs e)
{
e.Row.MinHeight = 0;
}
Bug Report by Desislava Yordanova Status: New Comments: 0 Attachments: 2 Category: RadGridView Scheduled for: Not Scheduled Last update: 2018-09-24T07:11:07 by Desislava Yordanova
0
Desislava Yordanova
Team Member

FIX. RadRichTextEditor - ArgumentException when scrolling in a loaded rtf file

To reproduce: run the sample project, open the test.rtf file and start scrolling with the mouse. As a result you will encounter the following error:

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.get_RawFormat()
at System.Drawing.Graphics.IgnoreMetafileErrors(Image image, Int32& errorStatus)
at System.Drawing.Graphics.DrawImage(Image image, Single x, Single y, Single width, Single height)
at System.Drawing.Graphics.DrawImage(Image image, RectangleF rect)
at Telerik.WinControls.RichTextEditor.UI.GDIPaintingContext.DrawImage(Image image, RectangleF rectangle, Double opacity)
at Telerik.WinControls.RichTextEditor.UI.Image.PaintCore(IPaintingContext context)
at Telerik.WinControls.RichTextEditor.UI.UIElement.Paint(IPaintingContext context)
at Telerik.WinControls.RichTextEditor.UI.FrameworkElement.PaintElement(IGraphics graphics, Single angle, SizeF scale)
at Telerik.WinControls.RadElement.DoOwnPaint(IGraphics graphics, Single angle, SizeF scale)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintOverride(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintOverride(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintOverride(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintOverride(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintOverride(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintOverride(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintOverride(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at Telerik.WinControls.UI.RadRichTextEditor.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Bug Report by Desislava Yordanova Status: New Comments: 0 Attachments: 1 Category: None Scheduled for: Not Scheduled Last update: 2018-09-24T05:30:06 by Desislava Yordanova
0
Desislava Yordanova
Team Member

FIX. RadSpellChecker - red squiggly lines remain visible for MS TextBox when the misspelled word is added to the dictionary

To reproduce: please refer to the attached sample project and follow the steps from the provided gif file.

Workaround: use RadTextBoxControl.
Bug Report by Desislava Yordanova Status: New Comments: 0 Attachments: 2 Category: RadSpellChecker Scheduled for: Not Scheduled Last update: 2018-09-24T05:16:00 by Desislava Yordanova
0
Matthew Bagley

FIX. RadGridView - the current row is themed as selected when it is not selected and the SelectionMode is FullRowSelect in the Fluent and Crystal themes

After populating the RadGridView, unbound in this example, I use RadGridView1.ClearSelection. This works when using some themes such as Crystal and Office2013, but not others, like Fluent. See attached..... believe me that the code is EXACTLY the same for each, just the application theme is difference. This should be an easy one to replicate.
Bug Report by Matthew Bagley Status: Approved Comments: 1 Attachments: 2 Category: RadGridView Scheduled for: R3 2018 SP1 Last update: 2018-09-21T08:40:59 by Hristo Merdjanov
0
Dimitar Karamfilov
Team Member

FIX. RadGridView - the changes are not committed to the data set when the new row is focused.

Use attached to reproduce.
- Edit random cell and press Enter.
- Check the CellValueChanged event handler, the changes variable is null.

This will work if you comment the OnShown method.

Workaround:
IEditableObject editbaleObject = radGridView1.CurrentRow.DataBoundItem as IEditableObject;
if (editbaleObject != null)
{
editbaleObject.EndEdit();
}
Bug Report by Dimitar Karamfilov Status: In Development Comments: 0 Attachments: 1 Category: RadGridView Scheduled for: R3 2018 SP1 Last update: 2018-09-21T07:42:58 by Hristo Merdjanov
0
Desislava Yordanova
Team Member

FIX. RadTreeView - ToggleStateTypeConverter should handle converting from/to System.Windows.Forms.CheckState as well

To reproduce:

public RadForm1()
{
InitializeComponent();

BindingList<Item> items = new BindingList<Item>();
items.Add(new Item(0,"Root", CheckState.Checked,-1));
for (int i = 1; i < 5; i++)
{
items.Add(new Item(i, "Node" + i, CheckState.Checked,0));
}

this.radTreeView1.CheckBoxes = true;
this.radTreeView1.DisplayMember = "Name";
this.radTreeView1.ChildMember = "Id";
this.radTreeView1.ParentMember = "ParentId";
this.radTreeView1.CheckedMember = "IsActive";
this.radTreeView1.AutoCheckChildNodes = true;
this.radTreeView1.TriStateMode = true;
this.radTreeView1.DataSource = items;
this.radTreeView1.ExpandAll();
}

public class Item
{
public int Id { get; set; }

public string Name { get; set; }

public CheckState IsActive { get; set; }

public int ParentId { get; set; }

public Item(int id, string name, CheckState isActive, int parentId)
{
this.Id = id;
this.Name = name;
this.IsActive = isActive;
this.ParentId = parentId;
}
}

Workaround: implement a TypeConverter that can handle converting from/to System.Windows.Forms.CheckState. A sample implementation for creating a custom TypeConverter is demonstrated in the following help article: https://docs.telerik.com/devtools/winforms/treeview/data-binding/togglestateconverter
Bug Report by Desislava Yordanova Status: In Development Comments: 0 Category: RadTreeView Scheduled for: R3 2018 SP1 Last update: 2018-09-21T07:38:44 by Ivan Petrov
0
Displaying items 1 - 10 of 1229