Unplanned
Last Updated: 28 Oct 2021 06:47 by ADMIN

Use the following code snippet and enter "8,5" in RadMaskedEditBox. Then press Tab to navigate to the next control: 

        RadValidationRule validationRuleNumberLess;
        RadValidationRule validationRuleNumberGreater;
        float numberMaximum;
        float numberMinimum;

        public RadForm1()
        {
            InitializeComponent();
            CultureInfo culture = new System.Globalization.CultureInfo("de-DE");
            System.Threading.Thread.CurrentThread.CurrentCulture = culture;
            System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
            this.radMaskedEditBox1.Culture = culture;

            this.numberMaximum = float.Parse("9,999", culture);
            this.numberMinimum = 0;

            // set maximum
            this.validationRuleNumberLess = new RadValidationRule();
            this.validationRuleNumberLess.AddControl(this.radMaskedEditBox1);
            this.validationRuleNumberLess.Operator = Telerik.WinControls.Data.FilterOperator.IsLessThanOrEqualTo;
            this.validationRuleNumberLess.PropertyName = "Value";
            this.validationRuleNumberLess.ToolTipTitle = "Too big";
            this.validationRuleNumberLess.ToolTipText = "The value must be SMALLER than " + this.numberMaximum.ToString();
            this.validationRuleNumberLess.Value = (float)this.numberMaximum + 0.001D;
            this.radValidationProvider1.ValidationRules.Add(this.validationRuleNumberLess);
            this.radValidationProvider1.SetValidationRule(this.radMaskedEditBox1, this.validationRuleNumberLess);

            // set minimum
            this.validationRuleNumberGreater = new RadValidationRule();
            this.validationRuleNumberGreater.PropertyName = "Value";
            this.validationRuleNumberGreater.ToolTipTitle = "Too small"; // this.localToolTipTitle;
            this.validationRuleNumberGreater.ToolTipText = "The value must be BIGGER than " + this.numberMinimum.ToString();
            this.validationRuleNumberGreater.Operator = Telerik.WinControls.Data.FilterOperator.IsGreaterThanOrEqualTo;
            this.validationRuleNumberGreater.Value = (float)this.numberMinimum;
            this.validationRuleNumberGreater.AddControl(this.radMaskedEditBox1);
            this.radValidationProvider1.ValidationRules.Add(this.validationRuleNumberGreater);
            this.radValidationProvider1.SetValidationRule(this.radMaskedEditBox1, this.validationRuleNumberGreater);

            this.radLabel1.Text = "Minimum = " + this.validationRuleNumberGreater.Value + " Maximum = " + this.validationRuleNumberLess.Value;
        }

Workaround: use the ControlValidation event to control the validation flag: https://docs.telerik.com/devtools/winforms/controls/validation-provider/validation-rules#controlvalidation-event 

Unplanned
Last Updated: 26 Oct 2021 07:14 by ADMIN

To reproduce:

1. Add a RadChat to the form and assign a default author to it:

Me.RadChat1.Author = New Author(My.Resources.AnneDodsworth, "Nancy")

2. Add multiple messages to get a vertical scrollbar and try to scroll fast up and down. Please refer to the attached gif file illustrating the steps.

Unplanned
Last Updated: 25 Oct 2021 12:21 by ADMIN

There are situations where SelectedRows won't return the number of rows preselected when using Begin/EndUpdate even though it seems like there's a row selected in the UI. By preselected I mean the row that looks selected after the rows has been added. This bug has caused some problems for us because the user tried some action on a row they thought was preselected and it would fail.

One situation I found where this bug can be reproducted is by using SortOrder in combination of Begin/EndUpdate. There are probably more situations but I hope this one will let you find the underlying bug.

The attached project contains a simple form with a RadGridView which will contain a list of persons. The list is populated by this method:

public void PopulateGridView(List<Person> persons)
{
	PersonGridView.BeginUpdate();
	PersonGridView.DataSource = persons;
	PersonGridView.EndUpdate();
	PersonGridView.Columns[nameof(Person.LastName)].SortOrder = RadSortOrder.Ascending;
}

There are two buttons: "Step one" and "Step two". The first will mimick a situation where the user search a database for persons and none will be found. By clicking the "Get selected rows" you will see that the SelectedRows will return zero rows which is correct.
But when you afterwards click "Step two" (which will add five rows) it seems like there's one row preselected. I would expect the SelectedRows to return that row but by clicking "Get selected rows" again you will see that the returned rows are zero still. The CurrentRow, however is set to the preselected row as expected.
If you start by clicking "Step two" the SelectedRows actually returns the correct rows. Quite strange :-)

I know this is a very small issue and can be avoided. But as I mentioned there are other situations where this problem occurs and it's quite hard to figure out exactly what causes it.

Thank you for your help.

Best regards
Ulrik Skovenborg

Unplanned
Last Updated: 25 Oct 2021 09:37 by Jaime
Workaround: set the RadRibbonFormBehavior1.AllowTheming property of the form to false

public class RadForm1
{
	public RadForm1()
	{
		InitializeComponent();

		this.RadRibbonFormBehavior1.AllowTheming = false;

	}
}
Unplanned
Last Updated: 22 Oct 2021 11:21 by ADMIN

Create a RadRibbonForm or a RadForm with Ribbon behavior. When you run the application and maximize the form, the titlebar's text disappears.

Workaround: Use a RadForm and add RadRibbonBar without Ribbon behavior. Then set the RadRibbonBar.RibbonBarElement.RibbonCaption.Visibility to Collapsed.

Workaround 2 : set the RadRibbonForm.AllowAero property to false

Unplanned
Last Updated: 21 Oct 2021 13:57 by ADMIN

Here is my code for localizing the Sum aggregate function. The obtained result is a partial translation:

 

        public RadForm1()
        {
            PivotGridLocalizationProvider.CurrentProvider = new MyEnglishPivotGridLoclizationProvider();
            InitializeComponent();
        }

        private void RadForm1_Load(object sender, EventArgs e)
        {
            this.ordersTableAdapter.Fill(this.nwindDataSet.Orders);

            this.radPivotGrid1.RowGroupDescriptions.Add(new DateTimeGroupDescription() { PropertyName = "OrderDate", Step = DateTimeStep.Year, GroupComparer = new GroupNameComparer() });
            this.radPivotGrid1.RowGroupDescriptions.Add(new DateTimeGroupDescription() { PropertyName = "OrderDate", Step = DateTimeStep.Quarter, GroupComparer = new GroupNameComparer() });
            this.radPivotGrid1.RowGroupDescriptions.Add(new DateTimeGroupDescription() { PropertyName = "OrderDate", Step = DateTimeStep.Month, GroupComparer = new GroupNameComparer() });
            this.radPivotGrid1.ColumnGroupDescriptions.Add(new PropertyGroupDescription() { PropertyName = "EmployeeID", GroupComparer = new GrandTotalComparer() });
            this.radPivotGrid1.AggregateDescriptions.Add(new PropertyAggregateDescription() { PropertyName = "Freight", AggregateFunction = AggregateFunctions.Sum });
            this.radPivotGrid1.AggregateDescriptions.Add(new PropertyAggregateDescription() { PropertyName = "Freight", AggregateFunction = AggregateFunctions.Count });
            this.radPivotGrid1.FilterDescriptions.Add(new PropertyFilterDescription() { PropertyName = "ShipCountry", CustomName = "Country" });
            this.radPivotGrid1.DataSource = this.ordersBindingSource;
        }

        class MyEnglishPivotGridLoclizationProvider : PivotGridLocalizationProvider
        {
            public override string GetLocalizedString(string id)
            {
                switch (id)
                {
                    case PivotStringId.Sum:
                        return "Soma"; 
                    default:
                        return base.GetLocalizedString(id);
                }
            }
        }

Unplanned
Last Updated: 21 Oct 2021 06:39 by ADMIN
Created by: Dave
Comments: 4
Category: UI for WinForms
Type: Feature Request
0
This aggregate function should count all the distinct values.
Unplanned
Last Updated: 19 Oct 2021 07:12 by ADMIN
Created by: Manolo
Comments: 0
Category: GridView
Type: Feature Request
0
The following problem occurs in most Telerik controls: when browsing the screen with tab key and the screen reader arrives at a Telerik control it says unnecessary information, the Name property, or the name of control. In this case, when I arrive at this radGridView, the screen reader says: "Telerik.WinControls.UI.RadGridView ; 4;3  Tabla"
Part by part:
- Telerik.WinControls.UI.RadGridView: it is very annoying to receive this information.
- 4;3: this information is very important due to the screen reader says the quantity of rows and columns has the grid.
- Tabla: this information is from the screen reader and the operating system which inform the control type I am browsing.

Testing other controls I have found more accessibility troubles, but I think that it would take too long for this email.
Unplanned
Last Updated: 19 Oct 2021 07:12 by ADMIN
When I add a GridViewComboBoxColumn, if I browse the grid and I arrive at GridViewComboBoxColumn, the screen reader reads the ValueMember data instead of the DisplayMember.
If I press F2 key and browse the ComboBox, the control works perfectly, better than the Microsoft Windows Forms ComboBox.
Unplanned
Last Updated: 19 Oct 2021 05:50 by ADMIN
Provide an option to scale the watermark like in MS Word
Unplanned
Last Updated: 14 Oct 2021 12:22 by ADMIN
Unplanned
Last Updated: 13 Oct 2021 15:22 by ADMIN

The snap layouts window can be opened by using the Win+Z keyboard combination, but when the mouse is over the Maximize button of RadForm, the window is not shown.
MSDN information is available here: https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-snap-layout-menu

Following the guides from MSDN, we need to override the WndProc method of the form, listen to the WM_NCHITTEST message, and return HTMAXBUTTON result when the mouse is over the maximize button.


private const int HTMAXBUTTON = 9;
protected override void WndProc(ref Message m)
{
    if (m.Msg == NativeMethods.WM_NCHITTEST)
    {
        // Get the hit test location from message parameters
        Point location = this.ParseIntPtr(m.LParam);
        location = this.GetMappedWindowPoint(location);

        // Get the hit tested element and check if it is the Maximize button
        RadElement element = this.ElementTree.GetElementAtPoint(location);
        if (element == this.FormElement.TitleBar.MaximizeButton)
        {
            m.Result = new IntPtr(HTMAXBUTTON);
            return;
        }
    }

    base.WndProc(ref m);
}

private Point ParseIntPtr(IntPtr param)
{
    if (IntPtr.Size == 4) //x86
    {
        return new Point(param.ToInt32());
    }
    else //x64
    {
        long intParam = param.ToInt64();
        short x = (short)intParam;
        short y = (short)(intParam >> 16);
        return new Point(x, y);
    }
}

protected virtual Point GetMappedWindowPoint(Point screenPoint)
{
    NativeMethods.POINT inputPoint = new NativeMethods.POINT();
    inputPoint.x = screenPoint.X;
    inputPoint.y = screenPoint.Y;

    if (this.IsHandleCreated)
    {
        NativeMethods.MapWindowPoints(new HandleRef(this, IntPtr.Zero), new HandleRef(this, this.Handle), inputPoint, 1);
    }

    return new Point(
    inputPoint.x + this.FormBehavior.ClientMargin.Left,
    inputPoint.y + this.FormBehavior.ClientMargin.Top);
}

              
Unplanned
Last Updated: 13 Oct 2021 14:49 by ADMIN
Unplanned
Last Updated: 13 Oct 2021 06:40 by ADMIN
Created by: Arikkan
Comments: 0
Category: TabbedForm
Type: Bug Report
0
Please refer to the attached gif file illustrating better how the non-pinned tabs go behind the pinned tab. This behavior should be prevented and the tabs need to be arranged in a container on the right side of pinned tab.
Unplanned
Last Updated: 12 Oct 2021 07:33 by ADMIN
1. Create a new Form that inherits from RadForm and add some rad controls.
2. Checkin the file in your source control system
3. Open the form in design time will cause checkout
Unplanned
Last Updated: 11 Oct 2021 10:16 by Jean-Pierre
  • Create a Radform1 with RadSplitContainers (Orientation H or V)
  • In the designer, click on the Split (or try to move it does'nt work according this feedback RadSplitContainer: problem in resizing split panels in design time in Net5)
  • This property is added to the RadForm1.Designer.cs

            this.radSplitContainer2.Cursor = System.Windows.Forms.Cursors.SizeNS;

  • Deleting this property and working with the designer add again the property.

A project to reproduce is attached

Thanks

Unplanned
Last Updated: 07 Oct 2021 15:49 by ADMIN
Created by: Igo
Comments: 0
Category: UI for WinForms
Type: Bug Report
0

1. Run Telerik Theme Viewer app

2. Set Office2019Dark theme

3. Navigate to "Item Containers" tab

You will see that radTreeView does not display nodes.

 

Workaround:

this.radTreeView1.FullRowSelect = false;

Unplanned
Last Updated: 07 Oct 2021 15:05 by ADMIN

1. Set ThemeResolutionService.AllowAnimations = false;

2. Run the attached project and set a filter via the GridFilterButton popup

3. Click "Clear filter" option in the GridFilterButton popup

 

You will see that the GirdFilterButton visual indication is of an applied filter. However, there is no applied filter.

Unplanned
Last Updated: 07 Oct 2021 10:12 by ADMIN
Created by: Ben
Comments: 0
Category: GridView
Type: Bug Report
1

Please run the attached sample project. The row's height in the print document is not adjusted according to the column's width in the print page. 

Workaround: 

Usually for such cases it is convenient to increase the column's width in order to reduce its height and thus it would be able to fit the print page's height. In addition to adjusting the column's width, feel free to use multi-page printing:

https://docs.telerik.com/devtools/winforms/controls/gridview/printing-support/gridprintstyle#multi-page-printing   

 

Unplanned
Last Updated: 06 Oct 2021 13:39 by ADMIN

Dear Sir/Madam

Unfortunately, the SplitContainer in the .NET version 5 has problems, as you can see in the picture, I can not change the size in design time.

Is there a newer version that fixes this problem?

Telerik Winform Version :2020.3.1020

Visual Studio Version : 16.8.3

Best Regards

 

 

1 2 3 4 5 6