Completed
Last Updated: 19 Feb 2019 14:07 by ADMIN
This will handle the scenario of having different image sets for different DPI.
Completed
Last Updated: 15 Feb 2019 16:50 by ADMIN
Completed
Last Updated: 15 Feb 2019 16:46 by ADMIN

AutoCompleteSuggestHelper, Assembly: Telerik.WinControls.UI, Version=2019.1.117.40

 

Isnt the hilighted line (contains branch) very unoptimized.

https://rhale78.wordpress.com/2011/05/16/string-equality-and-performance-in-c/

Multiple ToLower string operation. Why not let the framework do the operation since you are always using ordinal?

optimized version: return item.Text.Contains(this.Filter, StringComparison.OrdinalIgnoreCase);


 

protected virtual bool DefaultFilter(RadListDataItem item)
    {
      switch (this.suggestMode)
      {
        case SuggestMode.StartWiths:
          return item.Text.StartsWith(this.Filter, this.StringComparison);
        case SuggestMode.Contains:
          if ((this.StringComparison & StringComparison.InvariantCultureIgnoreCase) == StringComparison.InvariantCultureIgnoreCase || (this.StringComparison & StringComparison.InvariantCultureIgnoreCase) == StringComparison.CurrentCultureIgnoreCase)
            return item.Text.ToLower().Contains(this.Filter.ToLower());
          return item.Text.Contains(this.Filter);
        default:
          return item.Text.StartsWith(this.Filter, this.StringComparison);
      }
    }

 

Completed
Last Updated: 14 Feb 2019 18:28 by Al

To reproduce:

Add a RadBindingNavigator to a form and change its name.

Bind it to something.

Workaround:

Leave the default name.

Completed
Last Updated: 14 Feb 2019 16:46 by ADMIN

To reproduce:

See the attached video.

Completed
Last Updated: 14 Feb 2019 16:37 by ADMIN

To reproduce:

Add page view with some pages.

Add a scrollable panel with some labels on the page.

The labels have different BackColor 

Workaround:

 radScrollablePanel1.PanelElement.Fill.BackColor = Color.FromArgb(245, 246, 247);
 //or
 radScrollablePanel1.BackColor = Color.FromArgb(239, 239, 239);

Unplanned
Last Updated: 11 Feb 2019 08:00 by ADMIN

To reproduce:

Copy an image and paste is several times inside the document.

Completed
Last Updated: 08 Feb 2019 13:11 by Ioannis
Created by: Ioannis
Comments: 2
Category: UI for WinForms
Type: Bug Report
1

To reproduce:

- Open the Print Preview dialog and select "Print Entire Workbook"

- Nothing happens and only the current sheet is printed

Completed
Last Updated: 06 Feb 2019 12:02 by ADMIN

To reproduce:

- add a drop-down list to a form and set the AutoCompleteMode to suggest

- set the theme to Fluent

- the drop-down list is higher than the other editor

Completed
Last Updated: 06 Feb 2019 11:32 by ADMIN
Created by: Gianluca Mariani
Comments: 6
Category: UI for WinForms
Type: Bug Report
1

Hello,

I have a very simple form that has this code:

 

public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();
 
        ThemeResolutionService.ApplicationThemeName = "Fluent";
    }
 
    private void radButton1_Click(object sender, EventArgs e)
    {
        SetStartForm(false);
    }
 
    private void SetStartForm(bool visible)
    {
        this.radGroupBox1.Visible = visible;
    }
 
    private void radButton2_Click(object sender, EventArgs e)
    {
        SetStartForm(true);
    }
}

 

At the start it call the SetStartForm() method that with a lot of other things hide the groupbox.

Well after a search when a user click again the button "Nuova Ricerca" I call again SetStartForm() but the components rendering remain with the border. Please see the video:

//video has been deleted due to sensitive data.

How can I solve that? Thanks

Completed
Last Updated: 05 Feb 2019 15:11 by ADMIN

Until released the text can be cleared this way:

GridSearchCellElement searchCell = this.radGridView1.TableElement.FindDescendant<GridSearchCellElement>();
if (searchCell != null)
{
    searchCell.SearchTextBox.Text = "";
}

Completed
Last Updated: 05 Feb 2019 14:32 by ADMIN

To reproduce:

- Open the Excel-like filtering example in the demo application and sort the second column. 

- The sort icon is over the text. 

Workaround:

private void RadGridView1_SortChanged(object sender, Telerik.WinControls.UI.GridViewCollectionChangedEventArgs e)
{
    this.radGridView1.TableElement.Update(GridUINotifyAction.StateChanged);
}

Completed
Last Updated: 31 Jan 2019 13:29 by ADMIN
Created by: Shawn
Comments: 2
Category: UI for WinForms
Type: Bug Report
0

Environment: Telerik WinForms 2018.3.1016.40, VS 2013 Pro U5, Win 10 Ent 64 1809 17763.195

Steps:

Create a new WinForm project with default settings

Add a RadForm with default settings

Add a RadScrollablePanel to the RadForm with default settings

Add a RadPanel inside the RadScrollablePanel with default settings

Add a 3 RadRadioButtons to the RadScrollablePanel  with default settings

Select all 3

Press Ctrl+X to cut the radio buttons.

Actual Result: Visual Studio will immediately hang and any unsaved project work will be lost.

Actual Desire: To be able cut and paste the 3 radio buttons into the RadPanel, just like normal MS WinForm controls in design-time.

Completed
Last Updated: 31 Jan 2019 11:17 by ADMIN

Use attached to reproduce:

- click on the second tab

- collapse the first group

- click the first tab

- click the second tab, both grids are visible

Workaround:

public RadForm1()
{
    InitializeComponent();
    new Telerik.WinControls.RadControlSpy.RadControlSpyForm().Show();

    layoutControlGroupItem3.PropertyChanged += LayoutControlGroupItem3_PropertyChanged;

}

private void LayoutControlGroupItem3_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
    if (e.PropertyName == "IsHidden" || e.PropertyName == "IsExpanded")
    {
        if (layoutControlGroupItem3.IsExpanded)
        {
            layoutControlGroupItem3.ContainerElement.Items[0].Visibility = Telerik.WinControls.ElementVisibility.Visible;
        }
        else
        {
            layoutControlGroupItem3.ContainerElement.Items[0].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
        }
    }

}

Completed
Last Updated: 31 Jan 2019 11:16 by ADMIN
How to reproduce: 
float ratio = .5f;
private void radButton1_Click(object sender, EventArgs e)
{
    float ratio = .5f;
    this.radPdfViewer1.ExportPage(1, @"..\..\img.jpeg", ratio, true, ImageFormat.Png);
}

Workaround: change the resolution of the document after exporting it with a ratio = 1
private void radButton1_Click(object sender, EventArgs e)
{
    float ratio = .5f;
    Bitmap bmp = this.radPdfViewer1.ExportPage(1, 1, true, ImageFormat.Png);
    Bitmap resizedImage = this.ResizeImage(bmp, (int)(bmp.Width * ratio), (int)(bmp.Height * ratio));
    resizedImage.Save(@"..\..\img2.jpeg");
}

public Bitmap ResizeImage(Image image, int width, int height)
{
    Rectangle destRect = new Rectangle(0, 0, width, height);
    Bitmap destImage = new Bitmap(width, height);
    destImage.SetResolution(image.HorizontalResolution, image.VerticalResolution);

    using (var graphics = Graphics.FromImage(destImage))
    {
        graphics.CompositingMode = CompositingMode.SourceCopy;
        graphics.CompositingQuality = CompositingQuality.HighQuality;
        graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        graphics.SmoothingMode = SmoothingMode.HighQuality;
        graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;

        using (var wrapMode = new ImageAttributes())
        {
            wrapMode.SetWrapMode(WrapMode.TileFlipXY);
            graphics.DrawImage(image, destRect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, wrapMode);
        }
    }

    return destImage;
}
Unplanned
Last Updated: 31 Jan 2019 07:48 by ADMIN
The functionality should be similar to the one in RadRibbonBar: https://docs.telerik.com/devtools/winforms/controls/ribbonbar/designing-radribbonbar/adding-key-tips
Unplanned
Last Updated: 30 Jan 2019 11:24 by ADMIN
Check the attached video 

or:

1. Insert some text

2. Change its span properties (e.g. set the font weight to Bold)

3. Position the caret right after the last letter of this text and type several letters

Observed: The span properties are applied to the new text as well

Expected: The new text shouldn't have those properties
Completed
Last Updated: 18 Jan 2019 15:14 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 3
Category: UI for WinForms
Type: Bug Report
3
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)
Completed
Last Updated: 16 Jan 2019 13:26 by ADMIN

Sometimes when copying from word is duplicating some parts of the text.

 

1 - Open the Telerik WinForms Demo Application;

2 - Go to RichTextEditor;

3 - Click on First Look;

4 - Delete All the text (Ctrl + A then Delete);

5 - Open the word document Attached;

6 - Select Everything (Ctrl + A) and copy;

7 - Paste on the RichTextEditor;

8 - The end of the second paragraph is duplicated;

 

Completed
Last Updated: 11 Jan 2019 17:00 by ADMIN
The form fields are not visible in a document created with Foxit pdf-editor.