Telerik Forums
UI for WPF Forum
1 answer
190 views
I have an application that has to run on multiple languages. The user can change the language on the fly at runtime. I really need a way to update the text in the group by header without reloading the entire gridview.

I have successfully set LocalizationManager.Manager to a new custom manager as below. The downside is that I have to reconstruct the gridview in code.


LocalizationManager.Manager = new TelerikGridViewCustomLocalizationManager();
 
...
 
class TelerikGridViewCustomLocalizationManager : LocalizationManager
    {
        public override string GetStringOverride(string key)
        {
            return MyLocalization.GetResource(key);
        }
    }


Is there any way to call an update or refresh on the gridview instead of creating a new one in code?

Thank you for the help.

Scott
Maya
Telerik team
 answered on 22 Dec 2011
1 answer
182 views
Hi
Please help me How to display date of telerik RadDatePicker date in the format : 'MM-dd-yy' (instead of the default format) inside a data bound column in ItemsControl.

Thanks
Kripa
Konstantina
Telerik team
 answered on 22 Dec 2011
2 answers
59 views
The same behavior we can see when we expand Rad Menu.

May be you also have solution for this problem.

Please, help us with this problem.

Licensing
Top achievements
Rank 1
 answered on 22 Dec 2011
3 answers
113 views
Hi, I'm dealing with a format issue in a CountFunction. Basically, we want to display the count of the rows as a result of a grouping. I do this in the Grouping and Grouped event as shown below:

private void gridView_Grouping(object sender, GridViewGroupingEventArgs e)
       {
                   var descriptor = e.GroupDescriptor as ColumnGroupDescriptor;
                   if (descriptor != null)
                   {                       
                                     
                  
                       var functions = descriptor.Column.AggregateFunctions;
                       if (functions.Count == 0)
                       {
                           functions.Add(new CountFunction());
                       }                 
                   }           
       }      
 
       private void gridView_Grouped(object sender, GridViewGroupedEventArgs e)
       {
           if (e.Action == GroupingEventAction.Remove)
           {
               ((ColumnGroupDescriptor)(e.GroupDescriptor)).Column.AggregateFunctions.Clear();
           }
       }


I'm sorry if the format is somewhat whacked. The result of the code is something like this, (in the group header)

Column A  5   5   5
       Column B  2   2   2
             Column C  3   3   3
     
When the desired format should be

Column A  5
     Column B  2
           Column C 3

What exactly is my code doing wrong? Is this by design?


Thanks,
Gio

Twistur
Top achievements
Rank 1
 answered on 21 Dec 2011
1 answer
80 views
I have a RadMap that has items added to an information layer. Sometimes these items overlap or they are in the exact same position making it impossible to click the item underneath. Is there support for finding all the items underneath a mouse click?
Andrey
Telerik team
 answered on 21 Dec 2011
6 answers
243 views
Hello,

I tried to use Savelayout/loadlayout to keep docking's layout, when in my wpf application i change "environment".
In my application I have different xaml page with each one contains a docking. And i load one or another with command in a ribbon.
Well, when an "environment" is unloaded, i'd like to keep the layout in order to redisplay it in the next control loading.

One of my environment is structured like this :
<UserControl x:Class="SphinxV6.Data.MC_Table"
    xmlns:win="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
    xmlns:v6="clr-namespace:SphinxV6" xmlns:v6Table="clr-namespace:SphinxV6.Data.Table"
    xmlns:v6Properties="clr-namespace:SphinxV6.Properties"
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
             xmlns:v6Ribbon="clr-namespace:SphinxV6.Ribbon" xmlns:toolselements="clr-namespace:SphinxV6.ToolsElements" xmlns:tabletoolselements="clr-namespace:SphinxV6.Data.Table.ToolsElements" Unloaded="UserControl_Unloaded"
             DataContextChanged="UserControl_DataContextChanged" Loaded="UserControl_Loaded">
 
    <Grid x:Name="root" DataContext="{Binding}" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
 
          <telerik:RadDocking x:Name="xDocking" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HasDocumentHost="true" Unloaded="RadDocking_Unloaded"
                            v6:RadDockingExtensions.SaveFloatingPane="True"
                            telerik:RadDocking.SerializationTag="xDocking" >
            <telerik:RadDocking.CompassStyle>
                <Style TargetType="{x:Type telerik:Compass}">
                    <Setter Property="IsCenterIndicatorVisible" Value="True"/>
                </Style>
            </telerik:RadDocking.CompassStyle>
 
            <telerik:RadDocking.DocumentHost>
                <win:WindowsFormsHost Name="windowsFormsHost1" />
            </telerik:RadDocking.DocumentHost>
 
            <telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical" Width="250" telerik:RadDocking.SerializationTag="DockedLeft">
 
                <telerik:RadPaneGroup  telerik:RadDocking.SerializationTag="gVars">
                    <telerik:RadPane DataContext="{Binding DataContext.TE_Variables, ElementName=root}" Header="{Binding Title}" CanDockInDocumentHost="False" CanUserClose="False" ContextMenuTemplate="{x:Null}"
                                     telerik:RadDocking.SerializationTag="pVars">
                        <tabletoolselements:TE_VariablesControl />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
 
                <telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="200,35" telerik:RadDocking.SerializationTag="gSample">
                    <telerik:RadPane DataContext="{Binding DataContext.TE_Samples, ElementName=root}" Header="{Binding Title}" IsHidden="{Binding DataContext.IsDockSampleVisible, ElementName=root, Mode=TwoWay, Converter={StaticResource convInverseBoolean}}" CanDockInDocumentHost="False" ContextMenuTemplate="{x:Null}"
                                     telerik:RadDocking.SerializationTag="pSample">
                        <toolselements:TE_SamplesControl />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="200,15" telerik:RadDocking.SerializationTag="gLang">
                    <telerik:RadPane DataContext="{Binding DataContext, ElementName=root}" Header="{x:Static v6Properties:Resources.languages}" CanDockInDocumentHost="False" CanUserClose="True" IsHidden="{Binding IsDockLangVisible, Mode=TwoWay, Converter={StaticResource convInverseBoolean}}" ContextMenuTemplate="{x:Null}"
                                     telerik:RadDocking.SerializationTag="pLang">
                        <StackPanel Margin="3" Orientation="Horizontal">
                            <v6:Ctrl_LangSelector ></v6:Ctrl_LangSelector>
                        </StackPanel>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </Grid>
</UserControl>

I make "pSample" pane floattable, and change environment, here's the layout saving (which seems to be ok, as far as i understand what saving should make):
<?xml version="1.0" encoding="utf-8"?><RadDocking SerializationTag="xDocking"><SplitContainers><RadSplitContainer SerializationTag="DockedLeft" Dock="DockedLeft" Width="250" Orientation="Vertical"><Items><RadPaneGroup SerializationTag="gVars" SelectedIndex="0"><Items><RadPane SerializationTag="pVars" IsDockable="True" Title="Variables" Header="Variables" CanUserClose="False" CanDockInDocumentHost="False" /></Items></RadPaneGroup><RadPaneGroup SerializationTag="gSample" RelativeWidth="200" RelativeHeight="35" SelectedIndex="-1"><Items /></RadPaneGroup><RadPaneGroup SerializationTag="gLang" RelativeWidth="200" RelativeHeight="15" SelectedIndex="-1"><Items><RadPane SerializationTag="pLang" IsHidden="True" IsDockable="True" Title="Langues" Header="Langues" CanUserClose="True" CanDockInDocumentHost="False" /></Items></RadPaneGroup></Items></RadSplitContainer><RadSplitContainer InitialPosition="FloatingDockable" FloatingWidth="220" FloatingHeight="300" FloatingX="628" FloatingY="555" IsInOpenWindow="True" RelativeWidth="200" RelativeHeight="35" IsAutoGenerated="True"><Items><RadPaneGroup RelativeWidth="200" RelativeHeight="35" IsAutoGenerated="True" SelectedIndex="0"><Items><RadPane SerializationTag="pSample" IsHidden="False" IsDockable="True" Title="Strates" Header="Strates" CanDockInDocumentHost="False" /></Items></RadPaneGroup></Items></RadSplitContainer></SplitContainers></RadDocking>

Now, I reload my environment, the layout is well reload (my psample still flotting at the right place).
I close the pSample pane (the binding boolean is well modified).
the saved layout seems not good, "psample" appears twice ! :
<?xml version="1.0" encoding="utf-8"?><RadDocking SerializationTag="xDocking"><SplitContainers><RadSplitContainer SerializationTag="DockedLeft" Dock="DockedLeft" Width="250" Orientation="Vertical"><Items><RadPaneGroup SerializationTag="gVars" SelectedIndex="0"><Items><RadPane SerializationTag="pVars" IsDockable="True" Title="Variables" Header="Variables" CanUserClose="False" CanDockInDocumentHost="False" /></Items></RadPaneGroup><RadPaneGroup SerializationTag="gSample" RelativeWidth="200" RelativeHeight="35" SelectedIndex="-1"><Items /></RadPaneGroup><RadPaneGroup SerializationTag="gLang" RelativeWidth="200" RelativeHeight="15" SelectedIndex="-1"><Items><RadPane SerializationTag="pLang" IsHidden="True" IsDockable="True" Title="Langues" Header="Langues" CanUserClose="True" CanDockInDocumentHost="False" /></Items></RadPaneGroup></Items></RadSplitContainer>
<RadSplitContainer InitialPosition="FloatingDockable" FloatingWidth="220" FloatingHeight="300" FloatingX="649" FloatingY="514" IsInOpenWindow="False" RelativeWidth="200" RelativeHeight="35" IsAutoGenerated="True"><Items><RadPaneGroup RelativeWidth="200" RelativeHeight="35" IsAutoGenerated="True" SelectedIndex="-1"><Items><RadPane SerializationTag="pSample" IsHidden="True" IsDockable="True" Title="Strates" Header="Strates" CanDockInDocumentHost="False" /></Items></RadPaneGroup></Items></RadSplitContainer>
<RadSplitContainer InitialPosition="FloatingDockable" FloatingWidth="220" FloatingHeight="300" FloatingX="649" FloatingY="514" IsInOpenWindow="False" RelativeWidth="200" RelativeHeight="35" IsAutoGenerated="True"><Items><RadPaneGroup RelativeWidth="200" RelativeHeight="35" IsAutoGenerated="True" SelectedIndex="-1"><Items><RadPane SerializationTag="pSample" IsHidden="True" IsDockable="True" Title="Strates" Header="Strates" CanDockInDocumentHost="False" /></Items></RadPaneGroup></Items></RadSplitContainer></SplitContainers></RadDocking>

What's wrong ? And an other problem, is that  hidden floatting panes  appear on the next environment...
The workaround (you've preconise on other forum) is to use "removefromparent" function, but,
1. when i use the tip on "close pane event", then the next saving layout xml doesn't contain the "pSample" pane. (and i loose it last position)
or 2. if i remove after saving layout, i have further problem to re-display the pane (i should click several time on my check box) I obtain the following error :
System.Windows.Data Error: 8 : Cannot save value from target back to source. BindingExpression:Path=IsDockSampleVisible; DataItem='TableEnvironment' (HashCode=18777961); target element is 'CheckBox' (Name='cbSamples'); target property is 'IsChecked' (type 'Nullable`1') TargetInvocationException:'System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.InvalidOperationException: L'élément possède déjà un parent logique. Il doit être détaché de l'ancien parent avant d'être attaché au nouveau.
   Ã  MS.Internal.Controls.InnerItemCollectionView.AssertPristineModelChild(Object item)
   Ã  MS.Internal.Controls.InnerItemCollectionView.Insert(Int32 index, Object item)
   Ã  System.Windows.Controls.ItemCollection.Insert(Int32 insertIndex, Object insertItem)
   Ã  Telerik.Windows.Controls.RadPaneGroup.ShowSinglePane(RadPane pane)
   Ã  Telerik.Windows.Controls.RadPaneGroup.ShowPane(RadPane pane)
   Ã  Telerik.Windows.Controls.RadDocking.OnPaneShow(RadPane pane)
   Ã  Telerik.Windows.Controls.RadDocking.OnRadPaneShow(Object sender, StateChangeCommandEventArgs args)
   --- Fin de la trace de la pile d'exception interne ---
   Ã  System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   Ã  System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   Ã  System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   Ã  System.Delegate.DynamicInvokeImpl(Object[] args)
   Ã  System.Windows.RoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   Ã  System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   Ã  System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   Ã  System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   Ã  System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   Ã  System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   Ã  Telerik.Windows.Controls.RadPane.OnShow(StateChangeCommandEventArgs args)
   Ã  Telerik.Windows.Controls.RadPane.Show()
   Ã  Telerik.Windows.Controls.RadPane.OnIsHiddenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   Ã  System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   Ã  System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   Ã  System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   Ã  System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   Ã  System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)
   Ã  System.Windows.Data.BindingExpression.Invalidate(Boolean isASubPropertyChange)
   Ã  System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   Ã  System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
   Ã  MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
   Ã  MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
   Ã  MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)
   Ã  MS.Internal.Data.PropertyPathWorker.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   Ã  System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
   Ã  System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)
   Ã  SphinxV6.EnvironmentBase.RaisePropertyChangedEvent(String sPropertyName) dans C:\dvlp\Project\WPF4\SphinxV6\_Common\Bases\EnvironmentBase.cs:ligne 1830
   Ã  SphinxV6.EnvironmentBase.set_IsDockSampleVisible(Boolean value) dans C:\dvlp\Project\WPF4\SphinxV6\_Common\Bases\EnvironmentBase.cs:ligne 73
   --- Fin de la trace de la pile d'exception interne ---
   Ã  System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   Ã  System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   Ã  System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   Ã  System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   Ã  System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   Ã  System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
   Ã  MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)
   Ã  MS.Internal.Data.ClrBindingWorker.UpdateValue(Object value)
   Ã  System.Windows.Data.BindingExpression.UpdateSource(Object value)'

Well, all seems to behave as expected until i hide panes.
(in another control, i hide a pane which is in a radgroup (non flotting), but in the saved xml, the ishidden attribute stays at "false"., then when i reload the control, the pane is shown.)

Thanks for your future explanation.

Aurore

i use wpf, 2011.3.1116.35 version of telerik dll




Konstantina
Telerik team
 answered on 21 Dec 2011
1 answer
83 views
We Update Wpf Rad Controls Trail version to Licensed version Application was closing automatically when xaml code opens......
please send solution for it

Thanking You
Erjan Gavalji
Telerik team
 answered on 21 Dec 2011
11 answers
423 views
How to add a floating panel from code behind.
Also how to add other controls to this panel like image?
Konstantina
Telerik team
 answered on 21 Dec 2011
2 answers
183 views
Hello!

Our new issue is based on  previous one. This problem is  also observed on Windowx XP only. The idea is to create floating toolwindow at the center of the screen dynamically. At the moment of toolwindow is created and its position is changed so we can see two "borders" of the toolwindow as it shown at the 1st attached screen shot. We've found partial workaround that hides the second "border" (by decreasing to zero size of the window after creating and increasing it back after changing position), but the 1st border still remains.

I've created sample project, that demonstrates this issue. 

Please, help us to solve this visual issue.
Licensing
Top achievements
Rank 1
 answered on 21 Dec 2011
4 answers
690 views
Since updating to version 2011.3.1205.40 the RadPanelBar control generates an exception when you click on one of the headers.
Even using the simple code below (C# Net 4.0 WPF), or more fully padded out (right through to a complex piece of production code).

When you run the code below and click on "Item 2" header an exception is generated "Value cannot be null. Parameter name: element"

The stack trace is:
   at Telerik.Windows.Controls.ChildrenOfTypeExtensions.<GetChildrenRecursive>d__3.MoveNext() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Core\Controls\Extensions\ChildrenOfTypeExtensions.cs:line 67
   at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at Telerik.Windows.Controls.RadTreeViewItem.GetFirstFocusableElement() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\TreeView\RadTreeViewItem.cs:line 1907
   at Telerik.Windows.Controls.RadTreeViewItem.OnGotFocus(RoutedEventArgs e) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\TreeView\RadTreeViewItem.Events.cs:line 757
   at System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
   at System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.Input.FocusManager.SetFocusedElement(DependencyObject element, IInputElement value)
   at System.Windows.Input.KeyboardNavigation.UpdateFocusedElement(DependencyObject focusTarget)
   at System.Windows.FrameworkElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e)
   at System.Windows.Input.KeyboardFocusChangedEventArgs.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.RaiseTrustedEvent(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.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   at System.Windows.UIElement.Focus()
   at Telerik.Windows.Controls.RadTreeViewItem.OnHeaderMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Navigation\TreeView\RadTreeViewItem.Events.cs:line 401
   at System.Windows.Input.MouseButtonEventArgs.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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.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.RaiseTrustedEvent(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.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(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, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   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.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   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 RadControlsWpfApp1.App.Main() in Z:\temp\bb\RadControlsWpfApp1\obj\x86\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly 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, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
<Window x:Class="RadControlsWpfApp1.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="550" Width="800">
        <Grid>
        <telerik:RadPanelBar Name="radPanelBar1">
            <telerik:RadPanelBarItem Header="Item 1" />
            <telerik:RadPanelBarItem Header="Item 2" />
        </telerik:RadPanelBar>
    </Grid>
</Window>
Tina Stancheva
Telerik team
 answered on 21 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?