Hi,
I am overriding ProcessCmdKey to detect when a user press a combination of keys to scroll up and down in the pdfViewer. I'm currently using .PageUp() and .PageDown(), but of course that goes up and down whole pages.
I understand that pdfViewer already has shortcuts using the arrow keys, but that requires that the pdfViewer control be in focus. For our purposes, the user prefers to not lose focus on whatever control they are using, for example, typing in data from the pdf without losing focus of the textbox.
Is there any way that I can use the native function of the Up and Down keys with pdfViewer without requiring that the pdfViewer control be in focus? If I cannot do so, how may I replicate scrolling behavior with my own chosen shortcuts?
private void ScrollPDFViewer(Keys keyData)
{
if (keyData == (Keys.Up | Keys.Control))
{
this.radPdfViewer.PageUp();
// this.radPdfViewer.PdfViewerElement.Scroller.UpdateScrollValue();
}
else if (keyData == (Keys.Down | Keys.Control))
{
this.radPdfViewer.PageDown();
}
}

I have a RadGridView with EnableGrouping = True and AutoSize = true. When I drag a column to group by it I get an "Exception Unhandled" error in my Program.Cs file;
System.Reflection.TargetInvocationException
HResult=0x80131604
Message=Exception has been thrown by the target of an invocation.
Source=mscorlib
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
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()
at System.Windows.Forms.Control.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at TDT.Program.Main() in C:\Users\0123456789\Documents\Visual Studio Projects\TDT\TDT\Program.cs:line 19
Inner Exception 1:
InvalidOperationException: MeasureOverride returned positive infinity: Telerik.WinControls.UI.GroupPanelElement
Any suggestions for a workaround?

Hello,
In the chart legend, I would like to show a line next to an item instead of a square. For the ChartView for Winforms I have been unable to find any information on the ability to change the shape. Is that possible?
As I work around, I had an idea to set the top and bottom border as white and increase the border size thinking that I could make the square look like a line I tried that with the following code, but it seems to have no affect. The default black border is sown instead.
LegendItem item = new LegendItem();
item.Element.BackColor = Color.Blue;
item.Element.BorderBottomColor = Color.White;
item.Element.BorderTopColor = Color.White;
item.Element.BorderTopWidth = 3;
item.Element.BorderBottomWidth = 3;
this.mainChart.ChartElement.LegendElement.Items.Add(item);
I am able to change the entire border using the following code. It displays a smaller square, which is kind of acceptable but there seems to be a shadow still visible.
LegendItem item = new LegendItem();
item.Element.BackColor = Color.Blue;
item.Element.BorderColor = Color.White;
item.Element.BorderWidth = 3;
this.mainChart.ChartElement.LegendElement.Items.Add(item);
Any ideas on how to achieve my goal?
Chris
Hi,
I'm working with the RadGridView component directly without use a model binding.
I would like to add dynamically a new Row at a position in my grid view after an other row by using :
gridView.Rows.Insert(row.Index + 1, newRow);It's working well if I'm not using a grouping. But when I add the grouping :
GroupDescriptor descriptor = new GroupDescriptor();descriptor.GroupNames.Add("NomGroupe", ListSortDirection.Ascending);gridView.GroupDescriptors.Add(descriptor);It's not work because the Index is ordered by the groupe.
How How can I do?
Thanks for your help,
Simon

Hi everybody, I'm evaluating RadBarcode for printing barcodes in thermal printers. My printers have a resolution of 203 dpi in both horizontal and vertical directions. I'm trying to generate an image of the barcode (EAN13) and sending to printer:
public DrawBarcode(Point Location, Size Size, string valor): base(Location)
{
this.Valor = valor;
bc = new RadBarcode();
bc.Value = valor;
var EAN13 = new Telerik.WinControls.UI.Barcode.Symbology.EAN13();
EAN13.ShowText = true;
bc.Symbology = EAN13;
EAN13.Stretch = true;
int n = 50;
while (true)
{
try
{
img = bc.ExportToImage(2*n, n);
this.size = img.Size;
return;
}
catch (Exception) { n += 10; }
}
}
public override void Draw(Graphics g)
{
base.Draw(g);
g.DrawImage(img, 0, 0);
}
I have a base class for controling Drag, zoom and rotation but it is not important in this scenario. When I send the image to screen, text is rendered perfectly but when I send the image to the printer, text is not redeable. Is it any why to specify resolution in ExortToImage or any other why to change generated image resolution?

I'm trying to use the built-in Excel function COUNTIF on a cell range. How do you return the integer result of that value? Do I have to specifically set the formula to a cell first and get the result that way? Or can I somehow just get the result without actually having to write the formula to a cell?
Thank you in advance.

Good day,
I want to get the zoom back to the original zoom and position after the radDiagram being zoomed.
Sometimes it is difficult to keep the zoom in good position. Thus I would like to put it again in the default zoom and point when pushing a button.
The RadDiagram making code, creating the RadDiagram:
Telerik.Windows.Diagrams.Core.DiagramConstants.MinimumZoom = 0.1 Telerik.Windows.Diagrams.Core.DiagramConstants.MaximumZoom = 10 MyRadDiagram.Zoom = 0.1 MyRadDiagram.IsSettingsPaneEnabled = False MyRadDiagram.DiagramElement.IsBackgroundSurfaceVisible = False MyRadDiagram.BackgroundGrid.Visibility = False MyRadDiagram.BackgroundPageGrid.Visibility = Telerik.WinControls.ElementVisibility.Hidden MyRadDiagram.BackgroundImageLayout = ImageLayout.None MyRadDiagram.BackgroundImage = Nothing posCentral = MyRadDiagram.PositionThe code I use to get back to original zoom:
Private posCenter As New Telerik.Windows.Diagrams.Core.Point(0, 0)Private Sub bCenterZoom_Click(sender As Object, e As EventArgs) Handles bCenterZoom.Click loading = True MyRadDiagram.Position = posCentral MyRadDiagram.Zoom = 0.1 loading = FalseEnd Sub

Greetings,
Is it possible to edit UI elements of of controls programmatically ?
For instance, I want to change header font of a Radgroupbox.
I normally should open its smartTag and change the font within root elements. But how to do it programmatically ?
