Telerik Forums
UI for WPF Forum
9 answers
821 views
I've been toying around with trying to load modules in DockPanes using MVVM Prism. I can do it with Tabs, but have not been able to figure out how to do it with DockPanes.

Any ideas?

I get the below cast error when I try and add the module to a Region.

Microsoft.Practices.Composite.Modularity.ModuleInitializeException was unhandled  
  Message="An exception occurred while initializing module 'Help'. \r\n    - The exception message was: Unable to cast object of type 'VistaAdmin.Help.Presentation.HelpView' to type 'Telerik.Windows.Controls.RadPane'.\r\n    - The Assembly that the module was trying to be loaded from was:VistaAdmin.Help, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n    Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem. \r\n  " 
  Source="Microsoft.Practices.Composite" 
  ModuleName="Help" 
  StackTrace:  
       at Microsoft.Practices.Composite.Modularity.ModuleInitializer.HandleModuleInitializationError(ModuleInfo moduleInfo, String assemblyName, Exception exception) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite\Modularity\ModuleInitializer.cs:line 106  
       at Microsoft.Practices.Composite.Modularity.ModuleInitializer.Initialize(ModuleInfo moduleInfo) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite\Modularity\ModuleInitializer.cs:line 68  
       at Microsoft.Practices.Composite.Modularity.ModuleManager.InitializeModule(ModuleInfo moduleInfo) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite\Modularity\ModuleManager.cs:line 248  
       at Microsoft.Practices.Composite.Modularity.ModuleManager.LoadModulesThatAreReadyForLoad() in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite\Modularity\ModuleManager.cs:line 209  
       at Microsoft.Practices.Composite.Modularity.ModuleManager.LoadModuleTypes(IEnumerable`1 moduleInfos) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite\Modularity\ModuleManager.cs:line 168  
       at Microsoft.Practices.Composite.Modularity.ModuleManager.LoadModulesWhenAvailable() in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite\Modularity\ModuleManager.cs:line 142  
       at Microsoft.Practices.Composite.Modularity.ModuleManager.Run() in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite\Modularity\ModuleManager.cs:line 71  
       at Microsoft.Practices.Composite.UnityExtensions.UnityBootstrapper.InitializeModules() in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.UnityExtensions\UnityBootstrapper.cs:line 239  
       at Microsoft.Practices.Composite.UnityExtensions.UnityBootstrapper.Run(Boolean runWithDefaultConfiguration) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.UnityExtensions\UnityBootstrapper.cs:line 112  
       at Microsoft.Practices.Composite.UnityExtensions.UnityBootstrapper.Run() in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.UnityExtensions\UnityBootstrapper.cs:line 69  
       at VistaAdmin.Shell.App.RunInDebugMode() in C:\Users\GClark\Documents\Visual Studio 2008\Projects\VistaAdmin\VistaAdmin.Shell\App.xaml.cs:line 44  
       at VistaAdmin.Shell.App.OnStartup(StartupEventArgs e) in C:\Users\GClark\Documents\Visual Studio 2008\Projects\VistaAdmin\VistaAdmin.Shell\App.xaml.cs:line 25  
       at System.Windows.Application.<.ctor>b__0(Object unused)  
       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.DispatcherOperation.InvokeImpl()  
       at System.Threading.ExecutionContext.runTryCode(Object userData)  
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)  
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
       at System.Windows.Threading.DispatcherOperation.Invoke()  
       at System.Windows.Threading.Dispatcher.ProcessQueue()  
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)  
       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.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)  
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)  
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)  
       at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg)  
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)  
       at System.Windows.Application.RunInternal(Window window)  
       at VistaAdmin.Shell.App.Main() in C:\Users\GClark\Documents\Visual Studio 2008\Projects\VistaAdmin\VistaAdmin.Shell\obj\Debug\App.g.cs:line 0  
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)  
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()  
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
       at System.Threading.ThreadHelper.ThreadStart()  
  InnerException: System.InvalidCastException  
       Message="Unable to cast object of type 'VistaAdmin.Help.Presentation.HelpView' to type 'Telerik.Windows.Controls.RadPane'." 
       Source="Telerik.Windows.Controls.Docking" 
       StackTrace:  
            at Telerik.Windows.Controls.RadPaneGroup.OnItemsChanged(NotifyCollectionChangedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\RadPaneGroup.cs:line 964  
            at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)  
            at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)  
            at System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)  
            at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)  
            at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)  
            at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)  
            at MS.Internal.Controls.InnerItemCollectionView.Add(Object item)  
            at System.Windows.Controls.ItemCollection.Add(Object newItem)  
            at Telerik.Windows.Controls.RadSplitContainer.PrepareContainerForItemOverride(DependencyObject element, Object item) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\RadSplitContainer.cs:line 673  
            at System.Windows.Controls.ItemsControl.MS.Internal.Controls.IGeneratorHost.PrepareItemContainer(DependencyObject container, Object item)  
            at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)  
            at System.Windows.Controls.Panel.addChildren(GeneratorPosition pos, Int32 itemCount)  
            at System.Windows.Controls.Panel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)  
            at System.Windows.Controls.Panel.OnItemsChanged(Object sender, ItemsChangedEventArgs args)  
            at System.Windows.Controls.ItemContainerGenerator.OnItemAdded(Object item, Int32 index)  
            at System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)  
            at System.Windows.Controls.ItemContainerGenerator.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)  
            at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)  
            at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)  
            at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)  
            at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)  
            at System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)  
            at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)  
            at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)  
            at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)  
            at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)  
            at System.Windows.Data.ListCollectionView.ProcessCollectionChangedWithAdjustedIndex(NotifyCollectionChangedEventArgs args, Int32 adjustedOldIndex, Int32 adjustedNewIndex)  
            at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)  
            at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)  
            at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)  
            at System.Collections.ObjectModel.Collection`1.Add(T item)  
            at MS.Internal.Data.EnumerableCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)  
            at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)  
            at Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.Presentation\Regions\ViewsCollection.cs:line 102  
            at Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.AddAndNotify(IList items) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.Presentation\Regions\ViewsCollection.Desktop.cs:line 30  
            at Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.UnderlyingCollection_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.Presentation\Regions\ViewsCollection.cs:line 142  
            at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)  
            at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)  
            at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)  
            at System.Collections.ObjectModel.Collection`1.Add(T item)  
            at Microsoft.Practices.Composite.Presentation.Regions.Region.InnerAdd(Object view, String viewName, IRegionManager scopedRegionManager) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.Presentation\Regions\Region.cs:line 313  
            at Microsoft.Practices.Composite.Presentation.Regions.Region.Add(Object view, String viewName, Boolean createRegionManagerScope) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.Presentation\Regions\Region.cs:line 218  
            at Microsoft.Practices.Composite.Presentation.Regions.Region.Add(Object view) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite.Presentation\Regions\Region.cs:line 189  
            at VistaAdmin.Help.Applications.ModuleController.ShowHelpView() in C:\Users\GClark\Documents\Visual Studio 2008\Projects\VistaAdmin\VistaAdmin.Help\Applications\ModuleController.cs:line 55  
            at VistaAdmin.Help.Applications.ModuleController.ShowContents() in C:\Users\GClark\Documents\Visual Studio 2008\Projects\VistaAdmin\VistaAdmin.Help\Applications\ModuleController.cs:line 62  
            at VistaAdmin.Help.Applications.ModuleController.Initialize() in C:\Users\GClark\Documents\Visual Studio 2008\Projects\VistaAdmin\VistaAdmin.Help\Applications\ModuleController.cs:line 47  
            at VistaAdmin.Help.Module.Initialize() in C:\Users\GClark\Documents\Visual Studio 2008\Projects\VistaAdmin\VistaAdmin.Help\Module.cs:line 34  
            at Microsoft.Practices.Composite.Modularity.ModuleInitializer.Initialize(ModuleInfo moduleInfo) in D:\Application Installs\Composite Controls 2009\CAL\Desktop\Composite\Modularity\ModuleInitializer.cs:line 64  
       InnerException:   
 
Miroslav Nedyalkov
Telerik team
 answered on 01 Mar 2010
3 answers
198 views
hi guys,
what's up?

i have to following WPF window:
xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" 
    xmlns:radNav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
    xmlns:radInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    Title="Window1" Height="700" Width="900"
    <Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="auto" /> 
            <RowDefinition Height="auto" /> 
            <RowDefinition Height="*" /> 
            <RowDefinition Height="auto" /> 
        </Grid.RowDefinitions> 
         
        <radNav:RadMenu Grid.Row="0"
            <radNav:RadMenuItem Header="Menu Category #1"
                <TextBlock> Menu Item #1 </TextBlock> 
            </radNav:RadMenuItem> 
            <radNav:RadMenuItem Header="Menu Category #2"
                <TextBlock> Menu Item #2</TextBlock> 
            </radNav:RadMenuItem> 
            <radNav:RadMenuItem Header="Menu Category #3"
                <TextBlock> Menu Item #3</TextBlock> 
            </radNav:RadMenuItem> 
        </radNav:RadMenu> 
         
        <ScrollViewer CanContentScroll="False" HorizontalScrollBarVisibility="Auto" 
                      VerticalScrollBarVisibility="Auto" Grid.Row="1"
            <radNav:RadToolBar> 
                <telerik:RadWrapPanel> 
                    <telerik:RadButton>ToolBar Item #1</telerik:RadButton> 
                    <telerik:RadButton>ToolBar Item #2</telerik:RadButton> 
                </telerik:RadWrapPanel> 
                <radNav:RadToolBarSeparator/> 
                <telerik:RadWrapPanel> 
                    <telerik:RadButton>ToolBar Item #3</telerik:RadButton> 
                    <telerik:RadButton>ToolBar Item #4</telerik:RadButton> 
                </telerik:RadWrapPanel> 
            </radNav:RadToolBar> 
        </ScrollViewer> 
         
        <DockPanel Grid.Row="2"
            <telerik:RadExpander ExpandDirection="Left" IsExpanded="True" DockPanel.Dock="Right"
                <ScrollViewer CanContentScroll="False" HorizontalScrollBarVisibility="Auto" 
                              VerticalScrollBarVisibility="Auto"
                    <StackPanel VerticalAlignment="Top" HorizontalAlignment="Left"
                        <telerik:RadButton/> 
                    </StackPanel> 
                </ScrollViewer> 
            </telerik:RadExpander> 
             
            <radDock:RadDocking x:Name="MainDockingControl" FlowDirection="RightToLeft" DockPanel.Dock="Top"
                 
                <radDock:RadDocking.DocumentHost> 
                    <radDock:RadSplitContainer> 
                        <radDock:RadPaneGroup Name="pngMainInDocumentHost" > 
                            <radDock:RadPane Header="pane #1"
                                <StackPanel> 
                                    <telerik:RadButton Name="CreateNewFloat"
                                        Creat New Float Pane 
                                    </telerik:RadButton> 
                                     
                                    <GroupBox> 
                                        <GroupItem> 
                                        <StackPanel> 
                                            <telerik:RadRadioButton>Radio Button #1</telerik:RadRadioButton> 
                                            <telerik:RadRadioButton>Radio Button #1</telerik:RadRadioButton> 
                                            <telerik:RadRadioButton>Radio Button #1</telerik:RadRadioButton> 
                                            <telerik:RadRadioButton>Radio Button #1</telerik:RadRadioButton> 
                                        </StackPanel> 
                                        </GroupItem> 
                                    </GroupBox> 
                                </StackPanel> 
                            </radDock:RadPane> 
                             
                            <radDock:RadPane Header="pane #2"
                                <TextBlock> This Is Pane #2 </TextBlock> 
                            </radDock:RadPane> 
                             
                            <radDock:RadPane Header="pane #3"
                                <TextBlock> This Is Pane #3</TextBlock> 
                            </radDock:RadPane> 
                        </radDock:RadPaneGroup> 
                    </radDock:RadSplitContainer> 
                </radDock:RadDocking.DocumentHost> 
            </radDock:RadDocking> 
             
            <radDock:RadDocking FlowDirection="RightToLeft" DockPanel.Dock="Bottom"
                <radDock:RadDocking.DocumentHost> 
                    <radDock:RadSplitContainer> 
                        <radDock:RadPaneGroup> 
                            <radDock:RadPane Header="Bottom Docked Control - Pane #1"
                                <StackPanel> 
                                    <TextBlock>Bottom Docked Control - Pane #1</TextBlock> 
                                     
                                    <radInput:RadDatePicker Name="myDatePicker" /> 
                                    <Label Content="{Binding ElementName=myDatePicker, Path=SelectedDate}" /> 
                                </StackPanel>                                 
                            </radDock:RadPane> 
 
                            <radDock:RadPane Header="Bottom Docked Control - Pane #2"
                                <TextBlock>Bottom Docked Control - Pane #2</TextBlock> 
                            </radDock:RadPane> 
 
                            <radDock:RadPane Header="Bottom Docked Control - Pane #3"
                                <TextBlock>Bottom Docked Control - Pane #3</TextBlock> 
                            </radDock:RadPane> 
                        </radDock:RadPaneGroup> 
                    </radDock:RadSplitContainer> 
                </radDock:RadDocking.DocumentHost> 
            </radDock:RadDocking> 
        </DockPanel> 
         
        <radNav:RadToolBar Grid.Row="3"
            <telerik:RadSlider Width="100" Value="1" Orientation="Horizontal" HandlesVisibility="Visible" 
                               HorizontalAlignment="Left" Maximum="10" LargeChange="1" Minimum="1" 
                               IsMoveToPointEnabled="False"/> 
            <radNav:RadToolBarSeparator/> 
            <Label Content="Some Content" /> 
            <radNav:RadToolBarSeparator/> 
            <ProgressBar Value="30"/> 
        </radNav:RadToolBar> 
    </Grid> 

in the bottom dock control i take one pane and dock it to the right (doesn't matter how you dock it)
when i try to resize the pane with the splitter between the pane and the DocumnetHost the splitter reacts opposite 
to my mouse pointer.
any suggestions?

thanks in advance,

Lior.
Miroslav Nedyalkov
Telerik team
 answered on 01 Mar 2010
1 answer
124 views
Hi..
When I set the SelectedItem... it does not change... any ideas... thanks

I'm trying to find a specific item in grid and set that item to the SelectedItem..      Is the following code the correct method...?
The object is found but the selecteditem does not get set.

   List<inv_mstr> lstFind = this.grid.ItemsSource as List<inv_mstr>;

 

                List<inv_mstr> lstFind2 = (lstFind.Where(i => i.inv_no == Convert.ToInt32(sch.ApptID)).Take(1)).ToList();

 

                this.grid.OnApplyTemplate();

 

                this.grid.SelectedItem = lstFind2.Take(1);

Milan
Telerik team
 answered on 01 Mar 2010
1 answer
106 views
Any plans on providing controls for use within Microsoft Surface Solutons?
Nikolay
Telerik team
 answered on 01 Mar 2010
1 answer
118 views
Hi,
I would like to select the entire row on clicking the row header (Navigation column). How do we achieve this? Currently the current row is not changing on clicking the row header

Thanks in Advance
Milan
Telerik team
 answered on 01 Mar 2010
5 answers
154 views
is there a way to force the grid to only select a single row even in child tables

what seems to be happening (2010 Q1) is that i can select a row in the parent table and also select a row in the child even though i have selectionmode set to single

Milan
Telerik team
 answered on 01 Mar 2010
1 answer
118 views
Hi,

when using the beta-dlls with a custom theme (http://www.telerik.com/community/forums/wpf/scheduler/custom-theme-how-to-get-categories-working.aspx) the Visual Studio XAML-Designer stops working with the following error:

Error    181    Cannot convert the value in attribute 'Source' to object of type 'System.Windows.Markup.StaticExtension'.  Error at object 'System.Windows.Data.Binding', Line 1 Position 891. 


Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
   at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Microsoft.Windows.Design.Features.FeatureManager.FeatureConnectorEntry.AttemptActivate()
   at Microsoft.Windows.Design.Features.FeatureManager.FeatureConnectorEntry.OnRequirementsChanged(Object sender, EventArgs e)
   at Microsoft.Windows.Design.RequirementValidator.OnRequirementChanged(Object sender, EventArgs e)
   at Microsoft.Windows.Design.RequirementSubscription.OnRequirementChanged()
   at Microsoft.Windows.Design.RequiresContextItemAttribute.RequireContextItemSubscription.OnContextItemChanged(ContextItem item)
   at Microsoft.Windows.Design.SubscribeContextCallback.Invoke(ContextItem item)
   at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.OnItemChanged(ContextItem item)
   at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.SetValue(ContextItem value)
   at Microsoft.Windows.Design.Interaction.DesignerView.set_Context(EditingContext value)
   at MS.Internal.Designer.SimpleViewManager.get_View()
   at Microsoft.Windows.Design.Documents.MarkupDocumentManager.get_View()
   at MS.Internal.Host.PersistenceSubsystem.get_DocumentView()
   at MS.Internal.Host.Designer.get_View()
   at MS.Internal.Designer.VSDesigner.Load()
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.Load()
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()

 
Unable to cast object of type 'MS.Internal.NamedObject' to type 'System.Windows.Input.Cursor'.
   at MS.Internal.Interaction.DesignerResources.GetCursor(ResourceKey key)
   at MS.Internal.GridControl.GridPanelAdorner..ctor(Grid grid)
   at MS.Internal.GridControl.GridDesigner..ctor(ModelItem gridItem)
   at MS.Internal.GridControl.GridDesigner.GetDesigner(ModelItem gridItem)
   at MS.Internal.GridControl.AlwaysVisibleGridAdornersProvider.Activate(ModelItem item, DependencyObject view)
   at Microsoft.Windows.Design.Interaction.AdornerProvider.InvokeActivate(EditingContext context, ModelItem item, DependencyObject view)
   at MS.Internal.Features.AdornerProviderFeatureConnector.FeatureProvidersAdded(ModelItem item, IEnumerable`1 extensions)
   at Microsoft.Windows.Design.Features.PolicyDrivenFeatureConnector`1.UpdateFeatureProviders()
   at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.UpdateCurrentTool(Tool newTool)
   at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.<.ctor>b__0(Tool newTool)
   at Microsoft.Windows.Design.ContextItemManager.SubscribeProxy`1.SubscribeContext(ContextItem item)
   at Microsoft.Windows.Design.EditingContext.DefaultContextItemManager.Subscribe(Type contextItemType, SubscribeContextCallback callback)
   at Microsoft.Windows.Design.ContextItemManager.Subscribe[ContextItemType](SubscribeContextCallback`1 callback)
   at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1..ctor(FeatureManager manager)
   at MS.Internal.Features.AdornerProviderFeatureConnector..ctor(FeatureManager manager)


Best Regards
Steffen

Steffen
Top achievements
Rank 1
Veteran
 answered on 01 Mar 2010
1 answer
62 views
Hey,

I was testing the column filtering functionality (where the filter box is inside the column header) and it is crashing the application in the Beta Q1 assemblies.

 

When the filter string is typed into the column filter box, and 'enter' is pressed, the application crashes.


I havent tested for this particular error within my own app, only in the wpf demo.

Thanks,


A Marshall
Vlad
Telerik team
 answered on 01 Mar 2010
5 answers
196 views
Is there any way to make the WPF RadGridView navigate down and up when pressing enter/shift enter like Excel does while remaining in edit mode. Currently when you fill in data in a column you have to press enter to exit edit mode, press down arrow and the press F2 to enter edit mode again. Not very effective when you are filling in 150 rows.

While on this topic, it would be great to have the rest of the Excel navigation in here like automatically entering edit mode when you start typing and being able to use the arrow keys for navigation when in edit mode.
Hristo
Telerik team
 answered on 01 Mar 2010
1 answer
163 views
I've referred to the demo to persist user grid settings (sort orders, grouping, columns, etc.) and it works great!  Problem is...it only works when I load and unload the control where my grid is hosted.  How can I persist these grid settings when my application is closed (a user clicks the red X in the upper-right to close it down)?  Do you have an example of how to accomplish that...as I'm guessing I need some code in the Application.xaml file or its code-behind.

Thanks!
Milan
Telerik team
 answered on 01 Mar 2010
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)
WatermarkTextBox
DesktopAlert
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?