Implement Text to Columns functionality similar to the one in Excel:
Add a call to "OnImageLoaded" to "RadPictureBoxelement.PasteImage()" method or create an event like "ImagePasted" ot be able to tract an image change at this point.
For me I solved this via an Harmony patch that adds a call to OnImageLoaded() on PasteImage() long time ago. Not really elegant, but I'm a noob in patching with Harmony.
Just want to leave it here for anyone that want ot use this solution too or for Telerik to implement a native way to expose an image change via PasteImage.
[HarmonyPatch(typeof(RadPictureBoxElement))]
[HarmonyPatch("PasteImage")]
public class RadPictureBoxElement_PasteImageFixes
{
private static readonly Dictionary<RadPictureBoxElement, Image> images = [];
public static void Prefix(object __instance)
{
if (__instance is RadPictureBoxElement pb)
{
// Remember our image
images.Remove(pb);
images.Add(pb, pb.Image);
}
}
public static void Postfix(object __instance)
{
if (__instance is RadPictureBoxElement pb && images.TryGetValue(pb, out var image) && pb.Image != image)
{
// Remove first to avoid conflicts on error
images.Remove(pb);
// Call "OnImageLoaded"
var method = typeof(RadPictureBoxElement).GetMethod("OnImageLoaded", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
method.Invoke(pb, null);
}
}
}
Provide an AI assistant for code generation with the Telerik UI for WinForms controls.
Add support for the RadRibbonBars to have their items merged while in MDI mode.
The tool should build the assemblies as described here: http://www.telerik.com/help/winforms/installation-deployment-and-distribution-redestributing-telerik-radcontrols-for-windows.html
The scenario which should be covered is selecting some data from Excel and pasting in the new row of RadGridView. This is an easy way for inserting data in the grid.
Add a property that can control whether a table row is allowed to break across pages or not.
RadMessageBox(form) is a telerik replacement for the System.Windows.Forms.MessageBox.
MessageBox has a parameter MessageBoxOptions.DefaultDesktopOnly which makes it (surprisingly) topmost. RadMessageBox does not have this option.
I have a scenario where the RadMessageBox is hidden by a total different application when shown. So I need to make it topmost.
Can you add some kind op RadMessageBoxOptions to make it topmost?