Telerik Forums
UI for WPF Forum
1 answer
99 views

Hello,

Im trying to dev my own GanttDragResizeVisualCueTemplate in order to add data in .

But i would like to keep the default behavior of dynamically computing stop and start task time on resize.

How the default GanttDragResizeVisualCueTemplate is computing theses 2 properties ?

Regards,

Vladimir Stoyanov
Telerik team
 answered on 10 Mar 2020
2 answers
109 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
117 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
350 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
85 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
153 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.2K+ 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
211 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
430 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
164 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?