In Development
Last Updated: 29 May 2023 07:58 by ADMIN
Scheduled for R2 2023

Use the code below and click the button to make the grid ReadOnly:

        public TestForm()
        {        
            InitializeComponent(); 
          
             GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn("checkbox");
            checkBoxColumn.EnableHeaderCheckBox = true;
            this.radGridView1.Columns.Add(checkBoxColumn);
            this.radGridView1.Columns.Add("text");
            this.Shown += TestForm_Shown;
        }

        private void TestForm_Shown(object sender, EventArgs e)
        {
            this.radGridView1.Columns["checkbox"].IsVisible = !this.radGridView1.Columns["checkbox"].IsVisible;
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
           
            this.radGridView1.ReadOnly = !this.radGridView1.ReadOnly;
        }

Unplanned
Last Updated: 25 May 2023 10:09 by ADMIN

To reproduce:

        public RadForm1()
        {
            InitializeComponent();

            this.radGridView1.Columns.Add("Telerik");
            this.radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
            for (int i = 0; i < 10; i++)
            {
                this.radGridView1.Rows.Add(Guid.NewGuid().ToString());
            }
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            RadPrintDocument document = new RadPrintDocument();
            document.DefaultPageSettings.Landscape = false;  
            this.radGridView1.PrintPreview(document);
        }

Step 1: Open Print Settings dialog:

Step 2: Change the Orientation to Landscape:

Step 3: Click directly the Print button here. Once the default Print dialog is opened choose Preferences:

Step 4: You will notice that the Orientation is still Portrait instead of Landscape:

Unplanned
Last Updated: 25 May 2023 08:13 by ADMIN

The caption text of the RibbonBarGroups disappears when switching themes runtime. The important part is that this behavior is observable when switching from the Office2010Blue theme to other themes. In this specific theme, the FillPrimitive holding the TextPrimitive (caption text) has the PositionOffset property set to 0,-1. This minus one pixel is messing up the layout during theme change.

What can be done as a workaround is to reset this property for every group. When the Office2010Blue theme is applied run this code:

private void radButton1_Click(object sender, EventArgs e)
{
    Office2010BlueTheme theme = new Office2010BlueTheme();
    ThemeResolutionService.ApplicationThemeName = "Office2010Blue";
    foreach (var item in this.ribbonTab1.Items)
    {
        if (item is RadRibbonBarGroup)
        {
            var group = item as RadRibbonBarGroup;
            group.Children[1].Children[0].PositionOffset = new SizeF(0, 0);
        }
    }
}

 

Unplanned
Last Updated: 22 May 2023 05:07 by ADMIN

The following themes are affected: Office2019Dark, Office2019Gray, Office2019Light, CrystalDark:

 

Unplanned
Last Updated: 18 May 2023 07:34 by ADMIN
In Development
Last Updated: 11 May 2023 07:57 by ADMIN

Steps that lead to the undesired behavior:

1. Create a VB project with one of the templates:

2. Initially, there is no subscription to the CalendarUserControl.Load event:

3. After opening the designer, you are subscribing to the Load event by double-clicking the Load event in the Properties section:

Then, the generated event handler is underlined as in the above screenshot.

 

Unplanned
Last Updated: 09 May 2023 10:32 by ADMIN
The control does not expand to fit the selected item when it has an image and the DropDownStyle is set to DropDownList.
Completed
Last Updated: 08 May 2023 14:41 by ADMIN
Release R2 2023
Exception in the ValueContextResolver when importing a document that contains conditional formatting.
Completed
Last Updated: 04 May 2023 20:32 by ADMIN
Created by: Carlos
Comments: 3
Category: UI for WinForms
Type: Bug Report
1

Hi Team,

The Travel Assistant demos are broken... it just hangs. This is also true for the Xamarin Demos, WPF demos and WinForms demos.

Here are some screenshots:

UI for Winforms demos

Telerik UI for Xamarin demos

 

Unplanned
Last Updated: 04 May 2023 12:58 by ADMIN
The CurrentDirectoryPath property is not serialized and it is lost every time the designer is reopened.
In Development
Last Updated: 04 May 2023 09:05 by ADMIN
Scheduled for R2 2023
Created by: Dess
Comments: 1
Category: UI for WinForms
Type: Bug Report
0

I downloaded the ERP demo from here: https://www.telerik.com/support/code-library/erp-demo-application-for-winforms

After upgrading the projects to .NET 4.8 and running the application, the following exception is observed:

The full stack trace:


System.Data.Services.Client.DataServiceTransportException
  HResult=0x80131509
  Message=Unable to connect to the remote server
  Source=Microsoft.Data.Services.Client
  StackTrace:
   at System.Data.Services.Client.HttpWebRequestMessage.GetResponse()
   at System.Data.Services.Client.DataServiceContext.GetResponseHelper(ODataRequestMessageWrapper request, IAsyncResult asyncResult, Boolean handleWebException)
   at System.Data.Services.Client.QueryResult.ExecuteQuery()
   at System.Data.Services.Client.DataServiceRequest.GetQuerySetCount(DataServiceContext context)
   at System.Data.Services.Client.DataServiceQueryProvider.ReturnSingleton[TElement](Expression expression)
   at ERP.Client.PurchasesControl.Initialize() in C:\Users\dyordano\Downloads\009a20df-21b2-4e64-b129-eaf9e0a686f5_ERP-CS (1)\ERP.Client\CustomControls\Views\PurchasesControl.cs:line 48
   at ERP.Client.BaseGridControl..ctor() in C:\Users\dyordano\Downloads\009a20df-21b2-4e64-b129-eaf9e0a686f5_ERP-CS (1)\ERP.Client\CustomControls\BaseGridControl.cs:line 49
   at ERP.Client.PurchasesControl..ctor() in C:\Users\dyordano\Downloads\009a20df-21b2-4e64-b129-eaf9e0a686f5_ERP-CS (1)\ERP.Client\CustomControls\Views\PurchasesControl.cs:line 29

  This exception was originally thrown at this call stack:
    System.Net.Sockets.Socket.DoConnect(System.Net.EndPoint, System.Net.SocketAddress)
    System.Net.ServicePoint.ConnectSocketInternal(bool, System.Net.Sockets.Socket, System.Net.Sockets.Socket, ref System.Net.Sockets.Socket, ref System.Net.IPAddress, System.Net.ServicePoint.ConnectSocketState, System.IAsyncResult, out System.Exception)

Inner Exception 1:
WebException: Unable to connect to the remote server

Inner Exception 2:
SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 65.52.19.99:80

 
Unplanned
Last Updated: 02 May 2023 06:05 by ADMIN

This is the sample code snippet:

        public RadForm1()
        {
            InitializeComponent();
            this.radSpreadsheet1.SpreadsheetElement.ActiveWorksheetEditor.MouseClick += ActiveWorksheetEditor_MouseClick;
        }

        private void ActiveWorksheetEditor_MouseClick(object sender, Telerik.WinControls.Spreadsheet.UI.MouseButtonEventArgs e)
        {
            Console.WriteLine(DateTime.Now.ToLongTimeString());
            var selection = this.radSpreadsheet1.SpreadsheetElement.ActiveWorksheetEditor.Selection.ActiveRange;
            if (!selection.IsColumnRange)
            {
            }
        }

Unplanned
Last Updated: 28 Apr 2023 10:05 by Ian

At the moment when any of the properties are changed, e.g. the frozen panes, the UI is not notified and you have to export and import the file in order for the UI to pick them up. 


Workaround: There are several workarounds:

1. Change the active worksheet and return to the old one

2. Export and import the document

3. Change the workbook of the RadSpreadsheet to a new one, and return the old one after that

4. Freeze the active worksheet using the ActiveWorksheetEditor.FreezePanes() method and freeze all others using the ViewState:

this.radSpreadsheet1.ActiveWorksheetEditor.FreezePanes(new CellIndex(10, 3));
foreach (var worksheet in this.radSpreadsheet1.Workbook.Worksheets)
{
      worksheet.ViewState.FreezePanes(5, 5);
}
In Development
Last Updated: 28 Apr 2023 08:16 by ADMIN
Scheduled for R2 2023
Unplanned
Last Updated: 27 Apr 2023 13:39 by ADMIN

Code to replicate the issue: 

            GridPrintStyle style = new GridPrintStyle();
            style.PrintHierarchy = true;
            style.HierarchyIndent = 0;
            style.ChildViewPrintMode = ChildViewPrintMode.SelectViewToPrint;
            this.radGridView1.PrintStyle = style;

            this.radGridView1.PrintPreview();

The attached gif file illustrates how the 20px hierarchy indent is returned after hitting the preview button.

Completed
Last Updated: 27 Apr 2023 06:55 by ADMIN
Release R2 2023 (LIB 2023.1.427)

When the CheckBox of a RadTreeNode is checked programmatically, the Unknown Action parameter needs to be passed to the NodeCheckedChanging/ed event.

 


Completed
Last Updated: 27 Apr 2023 06:55 by ADMIN
Release R2 2023 (LIB 2023.1.427)

Copy some content and paste it in the editor. The PasteOptions dialog remains opened and if the user clicks the PrintPreview button an error occurs:

Stack trace:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.RichTextEditor.UI.PasteOptionsPopup.OnRichTextBoxLayoutUpdated(Object sender, EventArgs e)
   at Telerik.WinControls.Layouts.ContextLayoutManager.fireLayoutUpdateEvent()
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
   at Telerik.WinForms.Documents.UI.DocumentPrintPresenter.Telerik.WinForms.RichTextEditor.IDocumentEditorPresenter.UpdateLayout()
   at Telerik.WinForms.RichTextEditor.RadRichTextBox.<>c__DisplayClass653_0.<UpdateEditorLayout>b__0()
   at Telerik.WinForms.RichTextEditor.RadRichTextBox.UpdateEditorLayout(Boolean focusCarret, Boolean updateCaretSize, Boolean async)
   at Telerik.WinForms.RichTextEditor.RadRichTextBox.set_ActiveEditorPresenter(IDocumentEditorPresenter value)
   at Telerik.WinForms.RichTextEditor.RadRichTextBox.Telerik.WinControls.UI.IPrintable.BeginPrint(RadPrintDocument sender, PrintEventArgs args)
   at Telerik.WinControls.UI.RadPrintDocument.OnBeginPrint(PrintEventArgs e)
   at System.Drawing.Printing.PrintDocument._OnBeginPrint(PrintEventArgs e)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at System.Windows.Forms.PrintPreviewControl.ComputePreview()
   at System.Windows.Forms.PrintPreviewControl.CalculatePageInfo()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

Completed
Last Updated: 27 Apr 2023 06:55 by ADMIN
Release R2 2023 (LIB 2023.1.427)

Add a RadTextBox on the form and open its smart tag:

Open the editor for the font and select the entire text:

Then, press Del:

When you try to close the editor, an error occurs:

However, the Font is already serialized as null:

As a result, the designer can't be opened any more:

 

Completed
Last Updated: 27 Apr 2023 06:55 by ADMIN
Release R2 2023 (LIB 2023.1.427)
This is reproducible when the ShowGroupedColumns is set to true. In this case, you can sort the group column by clicking on the column header or clicking on the group cell in the group panel. In this case, by clicking the column header, the user can only sort the column in descending mode.
1 2 3 4 5 6