Telerik Forums
UI for WPF Forum
4 answers
159 views
Hello Telerik team,

With the below grid settings I select multiple cells of the grid keeping the Ctrl button pressed.

<telerik:RadGridView x:Name="radgvActivity" 
                             Grid.Row="2"
                             Margin="0" 
                             IsReadOnly="False"
                             RowIndicatorVisibility="Visible"                                                          
                             ScrollMode="RealTime"
                             AutoGenerateColumns="False" 
                             EnableRowVirtualization="True"
                             CanUserFreezeColumns="False" 
                             CanUserResizeColumns="True"                            
                             Width="780" Height="600"
                             SelectionMode="Extended"
                             ClipboardCopyMode="All"
                             ClipboardPasteMode="Default"
                             SelectionUnit="Cell"
                             BeginningEdit="radgvActivity_BeginningEdit"
                             RowEditEnded="radgvActivity_RowEditEnded"
                             >



Now, on click of Ctrl + C, I get a System.NullReferenceException {"Object reference not set to an instance of an object."}
Please find the stack trace of the exception.

at Telerik.Windows.Controls.GridView.Clipboard.Writers.WriterBase.<GetSelectedItemsAsClipboardData>b__3(GridViewColumn c)
at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at System.Linq.Enumerable.ElementAtOrDefault[TSource](IEnumerable`1 source, Int32 index)
at Telerik.Windows.Controls.GridView.Clipboard.Writers.WriterBase.RenderHeaderRow()
at Telerik.Windows.Controls.GridView.Clipboard.Writers.WriterBase.Render()
at Telerik.Windows.Controls.GridView.Clipboard.Writers.HtmlWriter.Render()
at Telerik.Windows.Controls.GridView.GridViewDataControl.CopyToClipboard()
at Telerik.Windows.Controls.GridView.GridViewDataControl.CopyExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)
at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at ~\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

I donot get this exception on setting the selection unit to fullrow. SelectionUnit="FullRow"


Please help with this matter.



Thanks,
Regards,
Mausami
Milan
Telerik team
 answered on 21 Jun 2011
1 answer
117 views
Hi,

actually in my wpf application, users can apply changes  to any rows they want and eventually when they click on a "Save" button to apply pending changes.

To acheive that, I loop into "Items" property to check any row object for a specific flag in my object. The problem I have is, if the users apply a column filter before they click on the "Save" button, some changes can be missing because they are outside the filter range.

So, "Items" property contain only visible rows in GridView. Do we have acces to another DataItemCollection that contain all the data without the filters???

Thank's
Dimitrina
Telerik team
 answered on 21 Jun 2011
3 answers
72 views
Hi guys,

Has anyone successfully applied third party theme to RadGridView? How much effort involved ? This is our predicament: we really like Telerik controls especially the RadGridView but Business is kinda worried about its look being very different from the rest of non-Telerik controls. The option of migrating everythiing to Telerik controls is just not practical at this point because of schedule contraint.

So, if someone has attempted the feat we're planning, could you please provide us ideas and starting point?

Thanks
Gio
Vanya Pavlova
Telerik team
 answered on 20 Jun 2011
3 answers
152 views
Hi Admin,

I did some search in this forum and it seemed that no similar topic has been post.

I have an ObservableCollection<AbstractEntity> which contains some derived class instances such as CustomerEntity and EmployeeEntity. Binding this collection to a RadGridView ItemsSource is ok. Data is displayed correctly.

I want to apply some filters, such as showing CustomerEntity or EmployeeEntity only. So I defined a ListCollectionView like this:

var peopleCollectionView = (ListCollectionView)CollectionViewSource.GetDefaultView(this.People);

then bind the RadGridView ItemsSource to this ListCollectionView, and apply the filters to the ListCollectionView.

The filters work fine. But I found whenever there are multiple derived types of instances in the collection, the RadGridView shows the rows but the content in all the cells are empty. 

I checked the output and did not see any GUI exception.

Is it a known issue? Is there any solution for this?


Thanks,
Stephen




Vlad
Telerik team
 answered on 20 Jun 2011
3 answers
86 views
Hi,,

i'm looking for a very simple RadCarousel where i can add 10 buttons. Which Carousel should i use? How to cklick this Buttons?

Thank's a lot
Regards
Rene
Vanya Pavlova
Telerik team
 answered on 20 Jun 2011
3 answers
142 views
Hi,

is there any example how to bind a sqlite Database to a RadChart? I can't find anything.

thanks a lot
regards
rene
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 20 Jun 2011
3 answers
185 views
I'm binding my carousel to a child collection of an item on my ViewModel. This collection is an EntityCollection, but when I add an item to that bound collection, it's not being reflected in the carousel. It's not picking up the change.

My bound collection is a child collection to a EF entity object on my viewModel. I've tried capturing the event on my viewmodel and Raising a PropertyChanged on it, but that doesn't work either. My code is being fired, but that isn't updating the carousel. Maybe because I'm raising a propertyChanged, not a collection Changed?
Maya
Telerik team
 answered on 20 Jun 2011
1 answer
119 views
Hello,

We have an issue with a radgridview where we have custom expandability setup on the rows. When we sort on a column, the rows that have IsExpandable set to false get set back to true after the sort has happened. We set up a custom binding for the IsExpandable properties on the rows that have it set to false initially to get an idea of whats happening to cause it to go back to true on the sort. Here is the callstack:
FieldBridgeApp.exe!FieldBridgeApp.ProviderActionsGrid.set_IsExpandableProperty(Boolean value) Line 41    Basic
[Native to Managed Transition]    
[Managed to Native Transition]    
PresentationFramework.dll!MS.Internal.Data.PropertyPathWorker.SetValue(object item, object value) + 0xb1 bytes    
PresentationFramework.dll!MS.Internal.Data.ClrBindingWorker.UpdateValue(object value) + 0x70 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpression.UpdateSource(object value) + 0x80 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpressionBase.UpdateValue() + 0x62 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpression.Update(bool synchronous) + 0x60 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpressionBase.Dirty() + 0x33 bytes    
PresentationFramework.dll!System.Windows.Data.BindingExpression.SetValue(System.Windows.DependencyObject d, System.Windows.DependencyProperty dp, object value) + 0x27 bytes    
WindowsBase.dll!System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty dp, object value, System.Windows.PropertyMetadata metadata, bool coerceWithDeferredReference, System.Windows.OperationType operationType, bool isInternal) + 0x229 bytes    
WindowsBase.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0x2e bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewRow.IsExpandable.set(bool value) + 0x4d bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.InitializeHierarchyProperties(Telerik.Windows.Controls.GridView.GridViewRow gridViewRow) + 0x48 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.PrepareContainerForItemOverride(System.Windows.DependencyObject element, object item) + 0x1a4 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.Telerik.Windows.Controls.GridView.IGeneratorHost.PrepareItemContainer(System.Windows.DependencyObject container, object item) + 0x89 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(System.Windows.DependencyObject container) + 0x52 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.InsertContainer(int childIndex, System.Windows.UIElement container, bool isRecycled) + 0x189 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.InsertRecycledContainer(int childIndex, System.Windows.UIElement container) + 0x2a bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.AddContainerFromGenerator(int childIndex, System.Windows.UIElement child, bool newlyRealized) + 0x96 bytes    
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(System.Windows.Size constraint) + 0xed8 bytes    
PresentationFramework.dll!System.Windows.FrameworkElement.MeasureCore(System.Windows.Size availableSize) + 0x1d0 bytes    
PresentationCore.dll!System.Windows.UIElement.Measure(System.Windows.Size availableSize) + 0x337 bytes    
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout() + 0x1c4 bytes    
PresentationCore.dll!System.Windows.UIElement.UpdateLayout() + 0x16 bytes    
PresentationCore.dll!System.Windows.Interop.HwndSource.Process_WM_SIZE(System.Windows.UIElement rootUIElement, System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x2d0 bytes    
PresentationCore.dll!System.Windows.Interop.HwndSource.LayoutFilterMessage(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x160 bytes    
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0xbe bytes    
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7a bytes    
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, bool isSingleParameter) + 0x8a bytes    
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x4a bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.WrappedInvoke(System.Delegate callback, object args, bool isSingleParameter, System.Delegate catchHandler) + 0x44 bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, bool isSingleParameter) + 0x91 bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority priority, System.Delegate method, object arg) + 0x40 bytes    
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0xdc bytes    
[Native to Managed Transition]    
WindowsBase.dll!MS.Win32.HwndSubclass.DefWndProcWrapper(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x78 bytes    
[Native to Managed Transition]    
[Managed to Native Transition]    
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x125 bytes    
[Native to Managed Transition]    
[Managed to Native Transition]    
WindowsBase.dll!System.Windows.Threading.Dispatcher.GetMessage(ref System.Windows.Interop.MSG msg, System.IntPtr hwnd, int minMessage, int maxMessage) + 0x76 bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) + 0x8b bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) + 0x49 bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.Run() + 0x4c bytes    
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) + 0x1e bytes    
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x6f bytes    
PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) + 0x26 bytes    
PresentationFramework.dll!System.Windows.Application.Run() + 0x19 bytes    
FieldBridgeApp.exe!FieldBridgeApp.Application.Main() Line 91 + 0xa bytes    Basic
[Native to Managed Transition]    
[Managed to Native Transition]    
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x3a bytes    
Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2b bytes    
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x66 bytes    
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6f bytes    
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes    

We are trying to figure out why this is happening. We would like those rows to stay unexpandable.

Thanks.

Maya
Telerik team
 answered on 20 Jun 2011
1 answer
140 views
Hi,

I have a wpf project and I create a semi-transparent balck UserControl with a RadBusyIndicatror to indicate to my users that a synch job is being in progress.

The problem is when the job start, it's look like the job pulling all resources from the cpu and the RadBusyIndcator don't have enough cpu resources to show his fluid animation. The animation start, stop, start, stop, start, stop and so on...

code example:

BusyControl busyControl = new BusyControl();
busyControl.Start("Job in progress. Please wait...");
SynchroneJob();
busyControl.Stop();

Thank's
Yana
Telerik team
 answered on 20 Jun 2011
5 answers
138 views
hi,
I downloaded the new version of Telerik  controls -RadControls_for_WPF_2010_1_0422,
and lot of things have changed like colors and other Properties.
I want to use the new version but to stay with my old design.
I used 'SummerTheme' in the last version and now it's not in the same colors.
thanx.


Vanya Pavlova
Telerik team
 answered on 20 Jun 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?