Hello,
I contact you because I have 2 questions about the events of RagGridView control.
Thank you
Fabrizio
I want to exclude some columns from searching. I set the column AllowSearching = false. The column name is still showing in the 'Search in Columns' menu unchecked. Can I hide those columns? I tried :
DirectCast(DirectCast(e.ContextMenu, Telerik.WinControls.UI.RadDropDownButtonPopup).Items(0), Telerik.WinControls.UI.RadMenuItem).Items(i).Visibility = ElementVisibility.Hidden
It hides the menu item with the column name but showing a empty item in the position. Anyway I can make it disappear?
Thanks.
So what I have to do basically is create an Excel report of the selected rows of my RadGridView and create a header on the first few rows (above my RadGridView data) with a little information about the report so like the time it was created for example. For now, I'm using GridViewSpreadExport class and passing the RadGridView into the constructor and using the SpreadExportRenderer class. and calling RunExport(...). So I guess my questions are:
1.) I seen 3 different ways to export RadGridView data to Excel: GridViewSpreadExport, GridViewSpreadStreamExport, and ExportToExcelML. Which one is best for what I'm trying to accomplish?
2.) How can I just export the data of the selected rows of the RadGridView?
3.) Is there a way to export 2 RadGridView to the same Excel sheet?
Hi,
Is there a way to hide the column header, for example, I want to hide first column header and shift the item to the left.
Many thanks,
Omar

Using the new open file dialog, set MultiSelect = true
If you only select 1 file, the Open button is disable until you select at least 1 more file


Hi,
How can I disable the pinch gesture (aka two finger zoom in or out) which is changing the row height (undesired). For fixing the row height, I have set AllowRowResize = false. With the gesture, the row height can still be made very small or very large with this set to false. This is for version 2014.3.1202.40 of the GridView.
Thanks!
Alan

I'm testing gridview and add cell values manually without using any datasource.
I'd like to show navigator control for the rows of gridview.
Is there any way to do so?

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?
