Telerik Forums
UI for WPF Forum
1 answer
142 views
Hi all
I am using latest hotfix version of radcontrols. following error occured as i can not use radpane. how can i supress this error?

System.NullReferenceException was unhandled by user code
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.Docking
  StackTrace:
       at Telerik.Windows.Controls.RadDocking.SelectActivePane(RadPane radPane) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 332
       at Telerik.Windows.Controls.Docking.PaneGroupBase.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Docking\Docking\Parts\PaneGroupBase.cs:line 227
       at System.Windows.UIElement.OnGotKeyboardFocusThunk(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.Docking.PaneGroupBase.OnMouseLeftButtonDown(Object sender, RoutedEventArgs e) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\Docking\Docking\Parts\PaneGroupBase.cs:line 392
       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)
  InnerException:
Konstantina
Telerik team
 answered on 22 Aug 2011
1 answer
401 views
Hello, I am trying to put a gridfooter on the bottom part of the grid. How can I do that? and also, on that grid, i'd like to show the total number of duration based on the Duration row on my grid. Can you please attach an example that I could follow? Thanks.
Vanya Pavlova
Telerik team
 answered on 22 Aug 2011
2 answers
164 views
Hi there,

I'm using RadScheduler, and other RadControls, on development in the my WPF software. However, i encountered some problems:
I try change CultureInfo for pt-BR and the properties on RadScheduler don't change languages. But when i changed for "en" or "it", the properties is changed with sucessfully.

Can you help me?

Thanks. Sorry for bad english.
cayo fontana
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
257 views
Hi,
I am Naresh Mesineni,
I have some doubt....How to strike out of a row.After data binding based on Active column value it has to be strike out with red color.

It is helpful provides sample code..

Thanks ad Regards
Naresh Mesineni
Ivan Ivanov
Telerik team
 answered on 19 Aug 2011
9 answers
406 views
Hi,

I implemented my own paste handling. Therefore I set the property RadGridView.ClipboardPasteMode to GridViewClipboardPasteMode.None. This worked perfectly for version Q3 2010. Now I update to Q2 2011. With this version my handlers of the command ApplicationCommands.Paste are not invoked any more. I noticed that now the method GridViewDataControl.PasteCanExecute contains the statemente: e.Handled = true. I think this does not make sense for GridViewClipboardPasteMode.None.

Is this a known issue? Will it be fixed? Is there a workaround?

Best regards

Uli

Nedyalko Nikolov
Telerik team
 answered on 19 Aug 2011
2 answers
243 views
Hi,

In the past, I've managed to successfully create a sort of time marker that show the current time. This marker worked fine until I upgraded to the newest version of RadControls in order to utilize the new AllDay Event-functionality.

Screenshot

Because of the new AllDay-area in the top of the calendar, my time marker shows the incorrect time. The algorithm used to calculate the position of the marker needs to know the height of the actual schedule (the scrollable area, marked with a long red line in the screenshot) in order to work. Earlier, I resorted to using the schedule's ActualHeight-property - a hardcoded static value (that corresponded to the group header height). However, this won't work now, as every AllDay Event changes the height of the group header area.

This leads me to the question; Is there a way of getting the height of the group header-part of the schedule (marked with a short red line on the screenshot) or the actual schedule (marked with a long red line on the screenshot)?

Thanks,
Kristian
Kristian
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
506 views

I use the MenuItem IsSeparator sucessfully in dropdown menus but the separator is not showing when used in the main menu bar...

<Menu>
   <MenuItem ... />
   <MenuItem IsSeparator="True" ... />
   <MenuItem ... />
</Menu>

EDIT: I added a default style for the menu item and it now displays a "horizontal" separator bar... How can I make this bar vertical ?
Dani
Telerik team
 answered on 19 Aug 2011
9 answers
383 views
In many examples, I see the use of the TileStateChanged event to manually control the tile state. In every example, the first line of code in the event handler is this:

RadTileViewItem item = e.Source as RadTileViewItem;

But when use the same code in my own handler, the e.Source reference is to the RadTileView, not RadTileViewItem. Just to note, I'm wiring the event up in xaml using the following:

<my:RadTileView x:Name="ClassOverridesTileView" 
                        ItemsSource="{Binding Classes}" 
                        ItemTemplate="{StaticResource HeaderTemplate}"
                        ContentTemplate="{StaticResource ContentTemplate}"
                        TileStateChanged="ClassOverridesTileView_TileStateChanged"
                         >
        </my:RadTileView>

Why would the source of the event be different for me than the examples?
Zarko
Telerik team
 answered on 19 Aug 2011
1 answer
196 views
Hey there,

I'd like to get rid of the shadow of the vertical splitter shown once you fix a column.
Is there any way to override the style and remove the shadow?


Thanks a lot!
Vanya Pavlova
Telerik team
 answered on 19 Aug 2011
3 answers
217 views

I am using the RadMenu as my standard window menu for an application that I am developing. An issue has arisen that menu items which have an Icon image. When the menu option is disabled, the Icon image appears to be being moved one pixel to the right, causing the border between the Icons and menu text to become misaligned. This results in an unsightly jagged line appearance in the overall menu.

Below is the XAML for the Edit menu of my application:

<!-- Edit Menu -->
<telerik:RadMenuItem
    MinWidth="35"
    HorizontalAlignment="Center"
    HorizontalContentAlignment="Center"
    Header="{x:Static commonRes:Properties.Resources.MenuHeaderEdit}">
  <telerik:RadMenuItem
      Style="{StaticResource menuItemStyle}"
      Header="{x:Static commonRes:Properties.Resources.MenuHeaderEditUndo}"
      Command="ApplicationCommands.Undo" >
    <telerik:RadMenuItem.Icon>
        <Image HorizontalAlignment="Center"
               VerticalAlignment="Center"
               Height="16"
               Width="16">
           <Image.Source>
              <BitmapImage
                  DecodePixelHeight="16"
                  DecodePixelWidth="16"               UriSource="pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/Edit_UndoHS.png"/>
           </Image.Source>
         </Image>
       </telerik:RadMenuItem.Icon>
     </telerik:RadMenuItem>
     <telerik:RadMenuItem
         Style="{StaticResource menuItemStyle}"
         Header="{x:Static commonRes:Properties.Resources.MenuHeaderEditRedo}"
         Command="ApplicationCommands.Redo" >
       <telerik:RadMenuItem.Icon>
         <Image HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Height="16"
                Width="16">
            <Image.Source>
              <BitmapImage
                  DecodePixelHeight="16"
                  DecodePixelWidth="16"
UriSource="pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/Edit_RedoHS.png"/>
            </Image.Source>
          </Image>
        </telerik:RadMenuItem.Icon>
      </telerik:RadMenuItem>
      <telerik:RadMenuItem IsSeparator="True"/>
      <telerik:RadMenuItem
          Header="{x:Static commonRes:Properties.Resources.MenuHeaderEditCut}"
          Command="ApplicationCommands.Cut" >
        <telerik:RadMenuItem.Icon>
          <Image HorizontalAlignment="Center"
                 VerticalAlignment="Center"
                 Height="16"
                 Width="16">
             <Image.Source>
                <BitmapImage
                    DecodePixelHeight="16"
                    DecodePixelWidth="16"                        UriSource="pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/CutHS.png"/>
             </Image.Source>
           </Image>
         </telerik:RadMenuItem.Icon>
       </telerik:RadMenuItem>
       <telerik:RadMenuItem
           Header="{x:Static commonRes:Properties.Resources.MenuHeaderEditCopy}"
           Command="ApplicationCommands.Copy" >
         <telerik:RadMenuItem.Icon>
           <Image HorizontalAlignment="Center"
                  VerticalAlignment="Center"
                  Height="16"
                  Width="16">
             <Image.Source>
               <BitmapImage
                   DecodePixelHeight="16"
                   DecodePixelWidth="16"             UriSource="pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/CopyHS.png"/>
             </Image.Source>
           </Image>
         </telerik:RadMenuItem.Icon>
       </telerik:RadMenuItem>
       <telerik:RadMenuItem
           Header="{x:Static commonRes:Properties.Resources.MenuHeaderEditPaste}"
           Command="ApplicationCommands.Paste">
         <telerik:RadMenuItem.Icon>
           <Image HorizontalAlignment="Center"
                  VerticalAlignment="Center"
                  Height="16"
                  Width="16">
             <Image.Source>
               <BitmapImage
                   DecodePixelHeight="16"
                   DecodePixelWidth="16"                       UriSource="pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/PasteHS.png"/>
             </Image.Source>
           </Image>
         </telerik:RadMenuItem.Icon>
       </telerik:RadMenuItem>
       <telerik:RadMenuItem
           Header="{x:Static commonRes:Properties.Resources.MenuHeaderEditSelectAll}"
           Command="ApplicationCommands.SelectAll"/>
     </telerik:RadMenuItem>

Any help on what could be causing this or possible workarounds to this issue would be greatly appreciated.

Regards,

    Mark Harding.

Dani
Telerik team
 answered on 19 Aug 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?