Declined
Last Updated: 11 Apr 2017 13:19 by ADMIN
Declined
Last Updated: 06 Feb 2018 06:38 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: Editors
Type: Bug Report
1
Workaround: 

public RadForm1()
{
    InitializeComponent();

    this.radSpinEditor1.SpinElement.TextChanging += SpinElement_TextChanging;
    this.radSpinEditor1.TextChanged += radSpinEditor1_TextChanged;
}

private void SpinElement_TextChanging(object sender, Telerik.WinControls.TextChangingEventArgs e)
{
    int numericValue = 0;
    if (!int.TryParse(e.NewValue, out numericValue))
    {
        this.radSpinEditor1.Tag = e.OldValue;
        e.Cancel = false;
    }
}

private void radSpinEditor1_TextChanged(object sender, EventArgs e)
{
    if (this.radSpinEditor1.Tag != null)
    {
        this.radSpinEditor1.SpinElement.Text = this.radSpinEditor1.Tag.ToString(); 
        this.radSpinEditor1.Tag = null;
    }
}
Declined
Last Updated: 06 Jun 2018 07:31 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 1
Category: GridView
Type: Bug Report
1
Use attached to reproduce.

This is not an issue. Performing Begin/End update disposes of all elements along with the globally declared item. You need to check if the item is disposed of:
void ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
{
    if (menuItem.IsDisposed)
    {
        menuItem = new RadMenuItem();
        menuItem.Text = "Custom menu item";
        menuItem.Click += menuItem_Click;
    }
    e.ContextMenu.Items.Add(menuItem);
}
Declined
Last Updated: 21 Sep 2017 13:16 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 1
Category: Diagram, DiagramRibbonBar, DiagramToolBox
Type: Bug Report
1
Please refer to the attached sample project. If you drag a new shape or copy/paste an existing one it is not added to the DataSource collection as it is added in RadGanttView for example.

Workaround: handle the ItemsChanged event and add a new record to the DataSource manually.
Declined
Last Updated: 15 Dec 2017 09:49 by ADMIN
Please refer to the attached sample project.
 
Workaround: Initialize the form just before showing it.
Declined
Last Updated: 03 May 2016 10:35 by ADMIN
When the last run from a paragraph is underlined, the associated bullet has underline applied as well. The same applies for the background color.
This item is migrated to the Telerik Document Processing portal: 
http://feedback.telerik.com/Project/184/Feedback/Details/190215 
Please use the new item for commenting, voting and subscribing instead of this one.
Declined
Last Updated: 03 May 2016 10:35 by ADMIN
To reproduce:
Merge some cells the insert a row:
private void button4_Click(object sender, EventArgs e)
{
    string fileName = @"..\..\exportresult1234.xlsx";
    WorkbookFormatProvidersManager.RegisterFormatProvider(new XlsxFormatProvider());
    IWorkbookFormatProvider formatProvider = WorkbookFormatProvidersManager.GetProviderByName("XlsxFormatProvider");
    FileStream fileStream = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite, 32 * 1024, false);
    Workbook workbook = new Workbook();
    Worksheet worksheet = workbook.Worksheets.Add();
    using (fileStream)
    {
        for (int rowIndex = 0; rowIndex < 20; rowIndex++)
        {
            for (int colIndex = 0; colIndex < 20; colIndex++)
            {
                if (rowIndex % 4 == 0)
                {
                    worksheet.Cells[rowIndex, colIndex, rowIndex, colIndex + 20].Merge();
                    worksheet.Cells[rowIndex, colIndex].SetValue("MERGED CELL");
                    break;
                }
 
                worksheet.Cells[rowIndex, colIndex].SetValue("text " + rowIndex + colIndex);
            }
        }
 
        if (worksheet.Rows.CanInsert(0, 1))
        {
            RowSelection selection = worksheet.Rows[0];
            selection.Insert();
        }
 
        CellIndex from = new CellIndex(0, 0);
        CellIndex to = new CellIndex(0, 16);
        CellSelection selection1 = worksheet.Cells[from, to];
        selection1.Merge();
        selection1.SetValue("Header TEXT MMMMMMMMMMMMMMMMMM");
        selection1.SetHorizontalAlignment(Telerik.Windows.Documents.Spreadsheet.Model.RadHorizontalAlignment.Center);
        selection1.SetFontSize(24);
 
        formatProvider.Export(workbook, fileStream);
    }
}

Workaround:
Reopen the document and then insert the row.
This item is migrated to the Telerik Document Processing portal: 
http://feedback.telerik.com/Project/184/Feedback/Details/190216 
Please use the new item for commenting, voting and subscribing instead of this one.
Declined
Last Updated: 09 Feb 2016 08:17 by ADMIN
To reproduce:
- Add RadCommanBar to a form and the shown and close the form several times.
Declined
Last Updated: 15 Oct 2015 10:42 by ADMIN
BindingList<Item> items = new BindingList<Item>();

public Form1()
{
    InitializeComponent();

    for (int i = 0; i < 20; i++)
    {
        items.Add(new Item(i % 4, "Item" + i, "Type" + i % 2));
    }
    this.radGridView1.DataSource = items;
    this.radGridView1.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
}

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

    public string Name { get; set; }

    public string Type { get; set; }

    public Item(int id, string name, string type)
    {
        this.Id = id;
        this.Name = name;
        this.Type = type;
    }
}

private void radButton1_Click(object sender, EventArgs e)
{
    items.Insert(0, new Item(2, "Test", "Type0"));
}

WORKAROUND I:

GridViewSynchronizationService.SuspendEvent(this.radGridView1.MasterTemplate, KnownEvents.CurrentChanged);
Item item = new Item(2, "Test", "Type0");
items.Insert(0, item);
GridViewSynchronizationService.ResumeEvent(this.radGridView1.MasterTemplate, KnownEvents.CurrentChanged);

foreach (GridViewRowInfo row in this.radGridView1.Rows)
{
    if (row.DataBoundItem == item)
    {
        this.radGridView1.CurrentRow = row;

        break;
    }
}



WORKAROUND II:

this.radGridView1.Rows.CollectionChanged += Rows_CollectionChanged;
this.radGridView1.GroupExpanding+=radGridView1_GroupExpanding;

List<GridViewRowInfo> expandedGroups = new List<GridViewRowInfo>();

private void radGridView1_GroupExpanding(object sender, GroupExpandingEventArgs e)
{
    if (!e.IsExpanded && shouldCollapse)
    {
        expandedGroups.Add(e.DataGroup.GroupRow);
    }
}

bool shouldCollapse = false;

private void radButton1_Click(object sender, EventArgs e)
{
    shouldCollapse = true;
    items.Insert(0, new Item(2, "Test", "Type0"));
}

private void Rows_CollectionChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e)
{
    if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Add)
    {
        this.radGridView1.CurrentRow = e.NewItems[0] as GridViewRowInfo;
        this.radGridView1.CurrentRow.IsSelected = true;
        GridViewRowInfo parent = this.radGridView1.CurrentRow.Parent as GridViewRowInfo;
        if (parent != null)
        {
            parent.IsExpanded = true;
        }

        if (shouldCollapse)
        {
            shouldCollapse = false;
            foreach (GridViewRowInfo r in expandedGroups)
            {
                if (!ContainsParentRow(parent, r))
                {
                    r.IsExpanded = false;
                }
            }
            expandedGroups.Clear();
        }
    }
}

private bool ContainsParentRow(GridViewRowInfo parent, GridViewRowInfo r)
{
    GridViewGroupRowInfo group = r as GridViewGroupRowInfo;
    if (group != null)
    {
        foreach (GridViewRowInfo childRow in group.ChildRows)
        {
            return ContainsParentRow(parent, childRow);
        }
    }

    return parent == r.Parent;
}
Declined
Last Updated: 03 May 2016 10:35 by ADMIN
This item is migrated to the Telerik Document Processing portal: 
http://feedback.telerik.com/Project/184/Feedback/Details/190229 
Please use the new item for commenting, voting and subscribing instead of this one.
Declined
Last Updated: 03 May 2016 10:35 by ADMIN
This item is migrated to the Telerik Document Processing portal: 
http://feedback.telerik.com/Project/184/Feedback/Details/190231 
Please use the new item for commenting, voting and subscribing instead of this one.
Declined
Last Updated: 22 Mar 2016 08:54 by ADMIN
Currently, when Delete is pressed the min values is set, however, the textbox should be cleared. 

This can be handled by using a custom provider:
public class MyFreeFormDateTimeProvider : FreeFormDateTimeProvider
{
    public MyFreeFormDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
        : base(mask, culture, owner)
    { }
    public override void KeyDown(object sender, KeyEventArgs e)
    {
        if (e.KeyValue != 46)
        {
            base.KeyDown(sender, e);
        }         
    }
}
Declined
Last Updated: 05 May 2016 13:27 by ADMIN
To reproduce:
-Add RadBrowseEditor to a form and set the DialogType to FolderBrowseDialog.
-At runtime click the browse button to open the "Browse For Folder" dialog and click the "Make New Folder", type a name for the newly created folder BUT DO NOT PRESS THE ENTER KEY and click the OK button, the Value is set to "New Folder" instead of the name I have typed.
Declined
Last Updated: 22 Feb 2017 09:00 by ADMIN
To reproduce:

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

    public string Name { get; set; }

    public DateTime Date { get; set; }

    public Item(int id, string name, DateTime date)
    {
        this.Id = id;
        this.Name = name;
        this.Date = date;
    }
}
public Form1()
{
    InitializeComponent();
    List<Item> items = new List<Item>();
    for (int i = 0; i < 10; i++)
    {
        items.Add(new Item(i,"Item" + i,DateTime.Now.AddHours(i)));
    }
    this.radGridView1.DataSource = items;
    this.radGridView1.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
}

private void Form1_Load(object sender, EventArgs e)
{
    System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB");
    this.radGridView1.Columns["Date"].ExcelExportFormatString = "M/d/yyyy h:mm tt";
    this.radGridView1.Columns["Date"].ExcelExportType = DisplayFormatType.Custom;

    GridViewSpreadExport spreadExporter = new GridViewSpreadExport(this.radGridView1);
    spreadExporter.ExportVisualSettings = true;
    SpreadExportRenderer exportRenderer = new SpreadExportRenderer();
    string fileName = @"..\..\exportedFile" + DateTime.Now.ToLongTimeString().Replace(":", "_") + ".xlsx";
    spreadExporter.RunExport(fileName, exportRenderer);
    Process.Start(fileName);
}

Declined
Last Updated: 05 Aug 2016 14:02 by ADMIN
This causes multiple controls updates which reduces the application performance. Having 3 labels will fire the event 45 times which will update the rest of the bound controls 45 times.
Declined
Last Updated: 20 Feb 2014 09:34 by ADMIN
foreach (Paragraph p in radRichTextBox1.Document.EnumerateChildrenOfType<Paragraph>()) { p.LineSpacing = 0; }

Comment: This is not an issue. RadRichTextBox behaves the same way as MS Word. You should set the SpacingAfter property to 0 in this case. The LineSpacing property determines the row height and the SpacingAfter one determines the spacing after the current paragraph. (e.g. when the user presses the Enter key)
Declined
Last Updated: 20 Oct 2014 14:44 by ADMIN
To reproduce:

On a button click call the following method:

newPdfViewer.Print(True)

When the dialog opens click the Print button, without interacting with another component. You will notice that there will be no effect from your click. Click second time, you can now click.

Resolution: 

This is not with RadPdfView issue since the dialog is Windows dialog

For more information please refer to:

http://social.msdn.microsoft.com/Forums/windows/en-US/681a50b4-4ae3-407a-a747-87fb3eb427fd/first-mouse-click-after-showdialog-hits-the-parent-form?forum=winforms

http://stackoverflow.com/questions/2648977/c-sharp-windows-forms-print-dialog-box-click-ok-twice-to-respond
Declined
Last Updated: 01 Oct 2014 12:17 by ADMIN
DECLINED: When you are implementing IBindingList in a custom collection, you are responsible for subscribing/unsubscribing to the PropertyChanged event of the items and firing the ListChanged event of the collection. RadDropDownList is not updated only if this implementation is missing.

The solution:

    protected override void OnInsertComplete(int index, object value)
    {
        EditableObject c = (EditableObject)value;
        c.Parent = this;
        c.PropertyChanged += c_PropertyChanged;
        OnListChanged(new ListChangedEventArgs(ListChangedType.ItemAdded, index));
    }

    protected override void OnRemoveComplete(int index, object value)
    {
        EditableObject c = (EditableObject)value;
        c.Parent = this;
        c.PropertyChanged -= c_PropertyChanged;
        OnListChanged(new ListChangedEventArgs(ListChangedType.ItemDeleted, index));
    }

    void c_PropertyChanged(object sender, PropertyChangedEventArgs e)
    {
        this.OnListChanged(new ListChangedEventArgs(ListChangedType.ItemChanged, this.List.IndexOf(sender)));
    }

To reproduce:


Use the following class:


public class NotifyObject : INotifyPropertyChanged
{
    private string prop;



    public string Prop
    {
        get { return this.prop; }
        set
        {
            this.prop = value;
            this.OnPropertyChanged("Prop");
        }
    }

    public event PropertyChangedEventHandler PropertyChanged;

    protected virtual void OnPropertyChanged(string propName)
    {
        if (this.PropertyChanged != null)
        {
            this.PropertyChanged(this, new PropertyChangedEventArgs(propName));
        }
    }
}

Create a BindingList and set a RadDropDownList's data source

private BindingList<NotifyObject> list;

list = new BindingList<NotifyObject>();
for (int i = 0; i < 5; i++)
{
    list.Add(new NotifyObject { Prop = i.ToString() });
}

this.DropDownList.ValueMember = this.DropDownList.DisplayMember = "Prop";
this.DropDownList.DataSource = list;

On a button click change on of the items property:

void Button_Click(object sender, EventArgs e)
{
    list[0].Prop = "A";
}

You will see that the changes will not take effect.

Workaround:

Use the following custom RadDropDownList:

public class MyDDList : RadDropDownList
{
    protected override RadDropDownListElement CreateDropDownListElement()
    {
        return new MyDDListElement();
    }
}


public class MyDDListElement : RadDropDownListElement
{
    protected override void WireEvents()
    {
        base.WireEvents();
        this.ListElement.DataLayer.DataView.CollectionChanged += DataView_CollectionChanged;
    }

    protected override void UnwireEvents()
    {
        base.UnwireEvents();
        this.ListElement.DataLayer.DataView.CollectionChanged -= DataView_CollectionChanged;
    }

    void DataView_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
    {
        if (e.Action == NotifyCollectionChangedAction.ItemChanged && e.ResetReason == CollectionResetReason.Refresh)
        {
            this.ListElement.GetType().GetMethod("HandleItemsReset", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(this.ListElement, new object[] { e });
        }
    }

    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(RadDropDownListElement);
        }
    }

}
Declined
Last Updated: 02 Mar 2016 07:21 by ADMIN
Created by: Georges
Comments: 6
Category:
Type: Bug Report
1
When I click on the scrollbar of a radlistcontrol to go down. The doubleclick event is fired but I don't think it should be fired.
Declined
Last Updated: 02 May 2014 08:14 by ADMIN
To reproduce:
- Add RadDock to a blank form and dock a tool window to the bottom.
- Add RadRichTextBox to the tool window and set its anchor property to all for sides.
- Save and close the form.
- Reopen the form, you will notice that the RadRichtextBox has different size.