To reproduce: 1. Add a RadContextMenu to the form. 2. Change at design time its Animation Enabled property to false. 3. Save the changes and reopen the form. 4. AnimationEnabled property value is set back to true.
In English: "dog's" is marked as incorrect
In French: "L'ordinateur" is marked as incorrect
The possible workaround is to use the old Pdf processing model, by setting the UsePdfProcessingModel property to false.
this.radPdfViewer1.UsePdfProcessingModel = false;
// This switches the thumbnails to the old model too. Otherwise they are blank.
this.radPdfViewer1.ContainerElement.ThumbnailList.UsePdfProcessingModel = false;
Currently the Enabled state of the buttons is not updated:
With this setup it is expected that the First/Previous and FastBack buttons are disabled. The same is also valid with the Last/Next and FastForward buttons when the last page is current.
A possible workaround is to handle the ViewChanged event of the template and manage the Enabled state of the buttons. Just make sure that the event is subscribed before enabling the paging:
this.radGridView1.MasterTemplate.ViewChanged += this.MasterTemplate_ViewChanged;
this.radGridView1.EnablePaging = true;
private void MasterTemplate_ViewChanged(object sender, DataViewChangedEventArgs args)
{
this.radGridView1.GridViewElement.PagingPanelElement.FirstButton.Enabled = true;
this.radGridView1.GridViewElement.PagingPanelElement.PreviousButton.Enabled = true;
this.radGridView1.GridViewElement.PagingPanelElement.FastBackButton.Enabled = true;
this.radGridView1.GridViewElement.PagingPanelElement.LastButton.Enabled = true;
this.radGridView1.GridViewElement.PagingPanelElement.NextButton.Enabled = true;
this.radGridView1.GridViewElement.PagingPanelElement.FastForwardButton.Enabled = true;
if (this.radGridView1.MasterTemplate.PageIndex == 0)
{
this.radGridView1.GridViewElement.PagingPanelElement.FirstButton.Enabled = false;
this.radGridView1.GridViewElement.PagingPanelElement.PreviousButton.Enabled = false;
this.radGridView1.GridViewElement.PagingPanelElement.FastBackButton.Enabled = false;
}
else if(this.radGridView1.MasterTemplate.PageIndex == this.radGridView1.MasterTemplate.TotalPages - 1)
{
this.radGridView1.GridViewElement.PagingPanelElement.LastButton.Enabled = false;
this.radGridView1.GridViewElement.PagingPanelElement.NextButton.Enabled = false;
this.radGridView1.GridViewElement.PagingPanelElement.FastForwardButton.Enabled = false;
}
}
To reproduce:
- .NET Core version: 3.1
- Visual Studio 2022: Version 17.0.0 Preview 7.0
- Telerik UI for WinForms version: 2021.3.1019-hotfix
1. Create a new Excel-Inspared template project.
2. Select the Review tab and the Properties section try to open the Items collection.
The attached Error.gif illustrates the steps.
Workaround: use the Smart tag (see SmartTag.gif)
Write an Appium test that validates radGridViews' empty cell Text.
You will see that the Text property contains the following information: "Row x Column y Value z"
x = row of the cell
y = column of the currently selected cell
z = value of the currently selected cell
instead of simply being either null or an empty string.
Workaround:
Instead of validating cell[index].Text, validate cell[index].GetAttribute("Value.Value").
Hi, when I select a date in the calendar and want to display it in a box, it also displays the base date each time I select a date.
First select the correct date but by selecting the same date show RangMinDate
my code is
private void radCalendar1_SelectionChanged(object sender, EventArgs e)
{
label1.Text = radCalendar1.SelectedDate.ToString();
}
The writing-mode attribute is ignored when rendering RadSvgImage.
Here is a sample SVG:
<svg width="200" height="200" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<g>
<text style="font-size:20px;writing-mode:tb;" x="30" y="30">
Vertical text
</text>
<text style="font-size:20px;writing-mode:vertical-lr;" x="50" y="50">
Text 2
</text>
</g>
</svg>
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);
}
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;