Telerik Forums
UI for WPF Forum
2 answers
115 views

Hello,

we got a crash report from one of our customers. This cusotmer is using Telerik.WindowsControls.Navigation assembly version 2017.3.913.45.  The exceptiion is in your source code in the WindowHost.GetGlobalMousePosition method. Any idea how to fix this?

stackTrace:

    System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
    ----------------------------------------------------------------------
    bei Telerik.Windows.Controls.WindowHost.GetGlobalMousePosition(UIElement target, MouseEventArgs e):
    ----------------------------------------------------------------------
    bei Telerik.Windows.Controls.InternalWindow.DragBehavior.OnElementMouseLeftButtonUp(Object sender, MouseButtonEventArgs e):
    ----------------------------------------------------------------------
    bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget):
    ----------------------------------------------------------------------
    bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target):
    ----------------------------------------------------------------------
    bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs):
    ----------------------------------------------------------------------
    bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e):
    ----------------------------------------------------------------------
    bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget):
    ----------------------------------------------------------------------
    bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target):
    ----------------------------------------------------------------------
    bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs):
    ----------------------------------------------------------------------
    bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args):
    ----------------------------------------------------------------------
    bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted):
    ----------------------------------------------------------------------
    bei System.Windows.Input.InputManager.ProcessStagingArea():
    ----------------------------------------------------------------------
    bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input):
    ----------------------------------------------------------------------
    bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport):
    ----------------------------------------------------------------------
    bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel):
    ----------------------------------------------------------------------
    bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled):
    ----------------------------------------------------------------------
    bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled):
    ----------------------------------------------------------------------
    bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled):
    ----------------------------------------------------------------------
    bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs):
    ----------------------------------------------------------------------
    bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam):
    ----------------------------------------------------------------------
    bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame):
    ----------------------------------------------------------------------
    bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame):
    ----------------------------------------------------------------------
    bei System.Windows.Window.ShowHelper(Object booleanBox):
    ----------------------------------------------------------------------
    bei System.Windows.Window.Show():
    ----------------------------------------------------------------------
    bei System.Windows.Window.ShowDialog():
    ----------------------------------------------------------------------

Mark
Top achievements
Rank 1
 answered on 10 Mar 2020
1 answer
121 views

Hi,

how can I get ride of the yellow background on focused Items?

 

 

Greetings

Andre

Martin Ivanov
Telerik team
 answered on 09 Mar 2020
3 answers
368 views

I've implemented a custom ComboBoxFilteringBehavior but the list won't filter. Looks like it's because I'm using a VirtualizingStackPanel to improve rendering performance of list that contains 1,000+ items. How can I filter the ComboBox list and continue to use the VirtualizingStackPanel?

Martin Ivanov
Telerik team
 answered on 09 Mar 2020
2 answers
93 views

We have a GanttView being used to display data over time, with a column on the left displaying a name associated with each row of data. Upon first rendering a data set onto the GanttView, the name column automatically sizes itself to fit the longest name in the data set. This behavior is nice, and we wish to keep it.

However, if the data set is large, not all rows of the data set will be immediately rendered onto the GanttView; these rows will only be rendered when the GanttView is scrolled down to reveal them. A result of this is that the name column will resize itself to fit the names of newly-rendered rows, if their names are longer than the longest name initially rendered.

This causes an issue for us, as we have functionality that makes use of the width of the name column, and we cannot rely on the GanttView being scrolled down to ensure that the name column is at its final width.

Is there a way to force the GanttView to size the name column to fit the longest name, regardless of whether that name's row has already been rendered?

Or, alternatively, is there a way to force the GanttView to render all of its rows when it is populated with data? I understand that this may cause a significant decrease in performance, but this may be acceptable.

Alexander
Top achievements
Rank 1
 answered on 09 Mar 2020
1 answer
174 views
Hi , I am not able to change the theme of pdf viewer toolbar can you help me to get exact toolbar theme as shown in demos?
Dimitar
Telerik team
 answered on 09 Mar 2020
8 answers
1.3K+ views
How can I create a round (as circle) RadButton, define its radius, and after all put any image (icon) on it surface? Please give me an example if this is possible ofcource. Thank you very much in advance.
Heiko
Top achievements
Rank 1
Iron
Veteran
 answered on 08 Mar 2020
5 answers
220 views

Hi,

I have following RadComboBox:

<telerik:RadComboBox x:Name="cmbSvtAreaManagers" Grid.Row="0" Grid.Column="2"
                ItemsSource="{Binding SvtAreaManagers}"
                TextSearch.TextPath="DisplayPerson"
                DisplayMemberPath="DisplayPerson"
                SelectedValue="{Binding CurrentCustomerFabrics.AreaManagerID, Mode=TwoWay}"
                SelectedValuePath="PersonID"
                ClearSelectionButtonContent="{bx:LocalizeBinding ClearSelectedItem, Global=true}"
                ClearSelectionButtonVisibility="Visible">

As you can see, the SelectedValue is bound to the CurrentCustomerFabrics object (my Model class) defined in my ViewModel.

private CustomerFabricsModel customerFabricsModel;
public CustomerFabricsModel CurrentCustomerFabrics
{
    get { return customerFabricsModel; }
    set
    {
        if (customerFabricsModel != value)
        {
            customerFabricsModel = value;
            NotifyPropertyChanged();
        }
    }
}

 

When the form is launched, the CurrentCustomerFabrics object is null (it's not initialized) so I would expect to see an empty combobox, but instead the first record is shown (SelectedIndex = 0).  How is this possible ?

Regards,
Hans

 

 

 
Dinko | Tech Support Engineer
Telerik team
 answered on 06 Mar 2020
4 answers
447 views

I have a GridViewDataColumn, in the first column is an AutoCompleteBox for searching names in a ObservablceCollection.

I have build the RadGridView with AutoCompleteBox like this:

 

<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="*" IsReadOnly="False">
     <telerik:GridViewDataColumn.CellTemplate>
      <DataTemplate DataType="{x:Type detailViews:MyViewModel}">
       <Grid>
        <Grid.ColumnDefinitions>
         <ColumnDefinition Width="*"/>
         <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <telerik:RadAutoCompleteBox DisplayMemberPath="Name"
                                    TextSearchMode="Contains"
               WatermarkContent="Suche..."
               AutoCompleteMode="Suggest"
               SelectionMode="Single"
                                    ItemsSource="{Binding Project.Names, RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}"  />
        <telerik:RadButton Grid.Column="1" HorizontalAlignment="Right" Style="{StaticResource RadImageButton}" ToolTip="Search"
                Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}, Path=DataContext.SearchFromDatabaseCommand}"
                CommandParameter="{Binding Path=.}">
         <Image Grid.Column="1" Source="{framework:ApplicationImage image}" Width="16" Height="16" />
        </telerik:RadButton>
       </Grid>
      </DataTemplate>
     </telerik:GridViewDataColumn.CellTemplate>
    </telerik:GridViewDataColumn>

 

My Problem is that the items of ObservableCollection not binded in autocompletebox. Is it possible with my type of implemetation of the AutoCompleteBox in the GridViewDataColumn?

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Mar 2020
1 answer
171 views

     Hello,

 

I have a RadMap that is throwing an exception which is putting my wpf application into 'break mode'. I am unable to locate where exactly the exception is occurring as it seems to be within the RadMap library. Any suggestions?

 

System.NullReferenceException

  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.DataVisualization
  StackTrace:
   at Telerik.Windows.Controls.Map.MapShapeData.SetLogicalWidth(Int32 zoomLevel)
   at Telerik.Windows.Controls.Map.MapShapeData.CalculateScreenGeometry(Int32 zoomLevel, Boolean raisePropertyChanged)
   at Telerik.Windows.Controls.Map.ShapeCoordinatesProcessor.StartProcessing(Object paramObject)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Vladimir Stoyanov
Telerik team
 answered on 05 Mar 2020
3 answers
179 views

  We need to change the appointment height per appointment in the RadScheduleView timeline view. Since we have multiple appointment types

with different information (amount of information), we need to change the size. We don't want scrollable content.

So my plan was to set the MinAppointmentHeight to the smallest appointment and than scale them. But if I set the MinAppointmentHeight,

all appointments just have the same size. Event if we change it in the style.

 

Thanks a lot!

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Mar 2020
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?