Steps to reproduce: 1. Paste image in the editor 2. Press enter (the image is pasted again everytime Enter is pressed) This is not issue in the control. It is cased by the test application. The focus remains on the paste button and for this reason the image is pasted when enter is pressed.
Hi,
I added a screen with RadSpreadsheet on it. When I open that screen from the parent screen, the DPI (scale) of the whole application changes.
Please find the source in the attachment.
Hello support,
here is what happend:
I created a RadFrom with controlls on it.
Then i add it to my RadDock like this:
private void Add_RadForm_asDocument_ToRadDock(RadDock rd, HostWindow hw, object radform, string title)
{
bool found = false;
foreach (var item in radDock_main_notr.DockWindows)
{
if (item.GetType() == typeof(HostWindow))
{
if (((HostWindow)item).Name == radform.GetType().Name + "1")
{
found = true;
hw = (HostWindow)item;
}
}
}
if (found == false && radform != null)
{
if (hw == null || hw.Text == "")
{
hw = rd.DockControl((System.Windows.Forms.Control)radform, DockPosition.Fill, DockType.Document);
}
}
hw.Text = title;
hw.CloseAction = DockWindowCloseAction.Close;
hw.ToolCaptionButtons = ToolStripCaptionButtons.None;
hw.Select();
}
The RadFrom is added to the RadDock:
Settings is the new RadFrom thats now docked.
But when i try to use the RadDropDownList then its "stucks" (also the other GUI controls):
The changed selection of the RadDropDownList will not change.
When i close the RadForm via the "x" and eropen it again it works.
PerformClick method of RadButtonElement is sending next error:
System.InvalidCastException: 'Unable to cast object of type 'System.EventArgs' to type 'System.Windows.Forms.MouseEventArgs'.
Find my code below:
private void btnAddField_Click(object sender, EventArgs e)
{
RadDiagramShape sourceShape = new RadDiagramShape()
{
Text = "source",
Shape = new RoundRectShape(5),
BackColor = Color.Red
};
sourceShape.Position = new Telerik.Windows.Diagrams.Core.Point(150, 100);
radDiagram.AddShape(sourceShape);
sourceShape.IsSelected = true;
RadButtonElement additionalContent = Telerik.WinControls.UI.Diagrams.Primitives.ItemInformationAdorner.GetAdditionalContent(
this.radDiagram.DiagramElement.ItemInformationAdorner) as RadButtonElement;
additionalContent.PerformClick();
}
What I want is to display the SettingsPane automatically when adding a RadDiagramShape item in a RadDiagram
Regards
Hi- When I add a Rad context menu to a RadToolbarForm, the toolbar vanishes from the designer after a build. This is new behavior because I have other context menus that I had previously added to the form. If I drag a RadContextMenu from the toolkit, or I copy/paste an existing context menu, the toolbar disappears after a build. I am running the latest release (2024.1.130) and toolkit config (although this also happens when running the previous Telerik release)
I tried closing the designer before the build and the toolbar still disappears. Doing a Clean before build has no effect. This form is inherited from a simple RadToolbar form (no controls except the toolbar). The toolbar is still listed in the list of controls for the form
Ha! Just found out what's happening. It's deleting the toolbar configuration code from the designer code. Everything below is gone. If I add it back in, then do anything with the new context menu, like rename it, it gets removed again
Here's my dev environment:
Microsoft Visual Studio Community 2022
When I create a new form-class, which derives from RadFrom, and I override the method OnLoad, then OnLoad is called during construction. This should never happen!
As Microsoft states: "The OnLoad method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class."
See: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form.onload?view=windowsdesktop-6.0
The OnLoad method can be used to load controls with data. But these controls are not even initialized, because the method InitializeComponent has not been called yet.
- the initial object property value is not displayed - the color change is not always reflected, even though the object implements INotifyPropertyChanged Adding the binding in code works correctly.
To reproduce: 1. Drag and drop RadPageView on the form 2. Add 2-3 pages 3. Set the ViewType to Backstage 4. Open smart tag and press Delete key to edit the Item Area Width property. After pressing the key, the RadPageView is removed from form. The issue is observed in Visual Studio 2015 only.
When setting the theme to a "touch/material" theme the padding & RadRibbonBar size increases.
When switching to a theme that isn't this type the spacing remains.
Non "touch/material" theme originally
Switch to "touch/material" theme
Switching back to a non "touch/material" theme
When testing this in the Telerik Theme Viewer when switching from a "touch/material" theme to a non "touch/material" type a message box instructing application restart is required is returned.
Zooming in will throw an Exception that crashes the program.
The ZoomLevel needed to cause the exception is dependent on the area of the RadMap selected.
Provider: BingRestMapProvider
ImagerySet AerialWithLabelsOnDemand
Zooming in over Antarctica, Exception thrown zooming in at MapElement.ZoomLevel 14.
Zooming in over Australia, Exception thrown zooming in at MapElement.ZoomLevel 21.
The version of Telerik products is requested as information where submitting a support ticket. In case one forgot the version currently installed, there is no way to find it (may be I am the only one who don't know). Usually most software provide such information in the "About" box. I found it difficult and not very useful that the "About" menu of Telerik connect to the Progress Home Page instead of displaying some useful information about the current installation (user name, version, installed components, license status, etc....). There are already many other actions (request support, online documentation, etc...) that connect to the web site. The "About" box should just be displayed within VS and provide information on the installation. Or at least you link it to the Progress Control Panel and adding a page for information I mentioned and more that user may need to know when needed.
Below is an example from VS.
I just upgraded to the latest version of Telerik products and facing the issues described below.
When dragging and drop Telerik UI objects from the toolbar on a form, the dialog box below is displayed with question but there is no button to click to answer the question and I don't where to stop it.
See screenshot attached.
I have made an override for class GridViewDataRowInfo (called GridViewDataRowInfoPlus)
Every time a new row is created by RadGridView, I expect OnCreateRowInfo to be called, so I can return my own instance of GridViewDataRowInfoPlus.
This goes well until a user enters new data in a new row and when this row is added the grid, OnCreateRowInfo is not being called and an instance of GridViewDataRowInfo is added to the grid.
For me that is unexpected and undesirable. Maybe I am doing it wrong. In that case: What is the correct way to intercept the row-creation-process and return instances of my own type?
Repro steps:
Expected behavior:
Observed behavior:
Report steps:
Expected behavior:
Observed behavior:
Extra detail:
In the method MasterGridViewTemplate.PasteDataToRow the next piece is code is located:
if (CurrentView.ViewTemplate.Columns[columnIndex].DataType == typeof(string))
{
if (column is GridViewTextBoxColumn viewTextBoxColumn && viewTextBoxColumn.MaxLength > 0 && rowData[rowIndex].Length > viewTextBoxColumn.MaxLength)
obj = rowData[rowIndex].Substring(0, viewTextBoxColumn.MaxLength);
}
Hi,
An HTTP Request returns me an error in HTML format. Please see img001. This image was capture in debug mode in Visual Studio.
When I want to show a MessageBox or a Label with this HTML, appears like in img002.
Thank you!
The HTML text is:
<!doctype html><html lang="en"><head><title>HTTP Status 401 ā Unauthorized</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 ā Unauthorized</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Unauthorized</p><p><b>Description</b> The request has not been applied because it lacks valid authentication credentials for the target resource.</p><hr class="line" /><h3>Apache Tomcat/8.5.65</h3></body></html>
So, at this point this seems to be a possible bug. The template project did not setup correctly. I have literally done nothing other than download and install Telerik WinForms today and then try to create this project. This _should_ work or give me instructions of further setup that I have to do manually.
I did try a couple other things, but also failed to get things working.
Restoring packages for C:\DevGit\pws\pws.core\pws.core\pws.core.csproj...
GET https://nuget.telerik.com/v3/package/ui.for.winforms.allcontrols.net60/index.json
GET https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0
OK https://nuget.telerik.com/v3/package/ui.for.winforms.allcontrols.net60/index.json 90ms
GET https://nuget.telerik.com/v3/package/ui.for.winforms.allcontrols.net60/2022.1.222/ui.for.winforms.allcontrols.net60.2022.1.222.nupkg
NotFound https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0 147ms
GET https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0
NotFound https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0 42ms
GET https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0
NotFound https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0 40ms
OK https://nuget.telerik.com/v3/package/ui.for.winforms.allcontrols.net60/2022.1.222/ui.for.winforms.allcontrols.net60.2022.1.222.nupkg 235ms
GET https://nuget.telerik.com/v3/package/system.management/index.json
GET https://nuget.org/FindPackagesById()?id='System.Management'&semVerLevel=2.0.0
....
followed by many more "NotFound" messages.
The following code to make the headers bold in a RadGridView. After upgrading to different 2022 versions from 2021, this code causes a Parameter is not valid error in ((System.ComponentModel.ISupportInitialize)(this.RadGridView1.MasterTemplate)).EndInit();
If I comment out the code and run then there is no error generated.
void
radGridView1_ViewCellFormatting(
object
sender, CellFormattingEventArgs e)
{
if
(e.CellElement
is
GridHeaderCellElement)
{
e.CellElement.Font = myCustomFont;
}
}