Telerik Forums
UI for WPF Forum
1 answer
160 views

I am enabling mulitpleselection of combobox and using Text field to bind a string value. After I use the multipleSelectionSeparator = "|", there is the null reference exception thrown. The binding field "BindText" has been initialized to empty string. There is no issue if I do not use multipleSelectionSeparator., so I am really confused why null reference is thrown and stack trace image is attached.

<telerik:RadComboBox x:Name="RadComboBox"                             

 IsReadOnly="False"                             

 IsEditable="False"                              

Text="{Binding BindText, Mode=OneWayToSource}"                             

 AllowMultipleSelection="True"                        

ItemsSource="{Binding BindTexts}"                             

 IsEnabled="{Binding IsEnabled}"                                

MultipleSelectionSeparator=";"         

/>

Martin Ivanov
Telerik team
 answered on 19 Mar 2018
1 answer
70 views

Hi,

 

We are trying to create a chart that looks the one shown in the attachment. Of note is the need to have different widths and colors for each bar as well as no gaps between them. Also, the ability to overlay the chart with the dotted lines is essential. We have found a few old forum threads saying that variable bar widths is not supported. Is this still the case?

Martin Ivanov
Telerik team
 answered on 19 Mar 2018
3 answers
82 views

So I dug up and old project that I need to modify however I cannot get it to compile as I appear to be missing references. Both RadRadialMenu and RadRibbonWindow (plus child items such as RadRadialMenuItem) are missing from assemblies. I have the latest WPF components installed. How do I fix this?

 

 

Martin Ivanov
Telerik team
 answered on 19 Mar 2018
2 answers
131 views

Our app doesn't start from a C# application but rather for a C++ app, which means all our WPF code runs from dlls.

That means we can't have an App.xaml file so all the resource dictionaries are declared wherever they're needed.

 

When floating a pane, it crates a ToolWindow but the styling is never applied to it, probably because there's no App.xaml.

How can we apply the styling?

Or
Top achievements
Rank 1
 answered on 18 Mar 2018
1 answer
72 views
Can anyone give me some advice on which Telerik WPF control(s) might be best to implement an interface like this screenshot.    There is a treeview on the left that expands a hierarchy of elements.   Each element has several properties that need to be displayed as columns, and then a schedule of dollar amounts that need to be displayed in a multi-level schedule format.   Thanks in advance for any assistance with this.
Ivan Ivanov
Telerik team
 answered on 16 Mar 2018
3 answers
252 views

I have a RadAutoCompleteBox:

 

<telerik:RadAutoCompleteBox x:Name="CustomerAutoCompleteBox" Grid.Row="10" Grid.Column="1" Margin="3"
    IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}"
    ItemsSource="{Binding Occurrence.Appointment.AllCustomerResourceTypesForDialog, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
    SearchText="{Binding Occurrence.Appointment.AllCustomerResourceTypesSearchText, BindsDirectlyToSource=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
    SelectedItem="{Binding Occurrence.Appointment.Customer, ValidatesOnDataErrors=True, NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
    IsDropDownOpen="{Binding Occurrence.Appointment.IsCustomerDropDownOpen, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
    SelectionMode="Single"
    DisplayMemberPath="DisplayName"
    TextSearchPath="DisplayName"
    MinWidth="218" >
</telerik:RadAutoCompleteBox>

 

The Appointment which is Bound is Created and filled with data like this:

var telerikAppointment = new ExtendedAppointment();
var customerResource = new Resource
                {
                    DisplayName = ((ModelsPath.Customer)appointment.Models[0]).KUNAM1.Trim(),
                    ResourceName = ((ModelsPath.Customer)appointment.Models[0]).CustomerId.ToString().Trim(),
                    ResourceType = Application.Current.FindResource("ResourceName.Customer") as string
                };
 
 
                telerikAppointment.AllCustomerResourceTypesForDialog.Clear();
                telerikAppointment.AllCustomerResourceTypesForDialog.Add(customerResource);
                telerikAppointment.Customer = customerResource;

 

Not my problem is, that the AllCustomerResourceTypesSearchText Property is not Updated when i start the AutoCompleteBox with a CustomerResource in it. When i tyoe some Text in it now to Search for another one the AllCustomerResourceTypesSearchText is not updaten and then my application is not searching for more Customers in the Database.

 

It Works fine if i start the RadBox without a pre selected Customer and AllCustomerResourceTypesForDialog and then try to search

 

Customer is a Resource and AllCustomerResourceTypesForDialog is a ObservableCollection<Resource>

 

I dont know how to fix this Problem so the bound AllCustomerResourceTypesSearchText Property is always updated.

 

 

Vladimir Stoyanov
Telerik team
 answered on 16 Mar 2018
3 answers
148 views

Hello,

In the RadMap documentation, under Overview, the following is in the key features:
Search - searching for a particular location takes just a few seconds thanks to the integrated search functionality in RadMap.
But nothing else indicates how this work.

I've tried to set IsTextSearchEnabled to true in my XAML, but I see nothing on the map that let me search for an address.

How doest this "feature" work?

Thanks in advance

Stefan
Telerik team
 answered on 15 Mar 2018
3 answers
126 views

Hello,

Currently the RadWindow.ResponseButton attached property is working only with RadButton (and classes that inherited from). It would be nice if it is also available with RadSplitButton, to simulate the press of the button.

Vladimir Stoyanov
Telerik team
 answered on 15 Mar 2018
3 answers
224 views
I am currently working with a column chooser on a RadGridView. The column chooser is similar to the one found in Vladimir's blog. The problem is that as soon as I launch the column chooser, select all check box on the data grid is over written by an empty header. Can you please help me?

My first column is a telerik select all column:
<telerik:GridViewSelectColumn/>  

<telerik:RadGridView Margin="0,25,0,0"
                                     x:Name="TrancheList"
                                     ItemsSource="{Binding Path=TrancheDataCollection}"
                                     AutoGenerateColumns="False"                                      
                                     ScrollMode="Deferred"                                                                           
                                     SelectedItem="{Binding SelectedTranche, Mode=TwoWay}"                                       
                                     FrozenColumnCount="3"
                                     Background="#FF91AEC9"
                                     AlternationCount="2"
                                     EnableRowVirtualization="True"                                     
                                     SelectionMode="Extended"                                     
                                     >
                <telerik:RadContextMenu.ContextMenu>
                    <telerik:RadContextMenu>
                        <telerik:RadMenuItem Header="Column Chooser" Click="RadMenuItem_Click"/>
                    </telerik:RadContextMenu>
                </telerik:RadContextMenu.ContextMenu>
                <inter:Interaction.Behaviors>
                        <beh:RadGridMultiSelectBehaviour SelectedItems="{Binding SelectedItems}"/>
                    </inter:Interaction.Behaviors> 



<Window x:Class="AnalyticsDealsModule.Views.ColumnChooser"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        
        Title="Tranche List Column Chooser" Height="300" Width="400"
        WindowStyle="SingleBorderWindow"         
        Topmost="True"
        >
    <Grid>
        <Grid x:Name="LayoutRoot" Margin="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock Text="Available columns:" />
            <ListBox ItemsSource="{Binding Columns}" Grid.Row="1">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <CheckBox Content="{Binding Header}" IsChecked="{Binding IsVisible, Mode=TwoWay}" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Grid>
    </Grid>
</Window>

Stefan
Telerik team
 answered on 15 Mar 2018
6 answers
760 views

One of our customers in Brazil is experiencing our program crash upon start. He has this problem on 4 different computers. A 5th computer had this problem and after format the problem is gone.

The computers, as much as I understand, have Windows 7 (I assume that all of them have the same OS).

From the Event Viewer, I was able to see the error, and it appears to be coming from your code:

 

Application: MyApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at Telerik.Windows.Controls.RibbonView.Shell.Standard.NativeMethodsHelper+NativeMethods._RegisterClassEx(Telerik.Windows.Controls.RibbonView.Shell.Standard.WNDCLASSEX ByRef)
   at Telerik.Windows.Controls.RibbonView.Shell.Standard.NativeMethodsHelper+NativeMethods.RegisterClassEx(Telerik.Windows.Controls.RibbonView.Shell.Standard.WNDCLASSEX ByRef)
   at Telerik.Windows.Controls.RibbonView.Shell.Standard.MessageWindow..ctor(Telerik.Windows.Controls.RibbonView.Shell.Standard.CS, Telerik.Windows.Controls.RibbonView.Shell.Standard.WS, Telerik.Windows.Controls.RibbonView.Shell.Standard.WS_EX, System.Windows.Rect, System.String, Telerik.Windows.Controls.RibbonView.Shell.Standard.WndProc)
   at Telerik.Windows.Controls.RibbonView.Shell.SystemParameters2.Init()
   at Telerik.Windows.Controls.RibbonView.Shell.SystemParameters2..ctor()
   at Telerik.Windows.Controls.RibbonView.Shell.SystemParameters2.get_Current()
   at Telerik.Windows.Controls.RibbonView.Shell.WindowChrome..ctor()
   at System.Xaml.Schema.XamlTypeInvoker+DefaultCtorXamlActivator.CallCtorDelegate(System.Xaml.Schema.XamlTypeInvoker)
   at System.Xaml.Schema.XamlTypeInvoker+DefaultCtorXamlActivator.CreateInstance(System.Xaml.Schema.XamlTypeInvoker)
   at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(System.Object[])
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(System.Xaml.XamlType, System.Object[])
   at MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.CreateInstance(System.Xaml.XamlType, System.Object[])
   at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(MS.Internal.Xaml.Context.ObjectWriterContext)
   at System.Xaml.XamlObjectWriter.WriteStartMember(System.Xaml.XamlMember)
   at System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter, Boolean, Boolean, Boolean, System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack`1<System.Windows.Markup.WpfXamlFrame>, System.Windows.Markup.IStyleConnector)
   at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
   at System.Windows.ResourceDictionary.CreateObject(System.Windows.Baml2006.KeyRecord)
   at System.Windows.ResourceDictionary.OnGettingValue(System.Object, System.Object ByRef, Boolean ByRef)
   at System.Windows.ResourceDictionary.OnGettingValuePrivate(System.Object, System.Object ByRef, Boolean ByRef)
   at System.Windows.ResourceDictionary.GetValueWithoutLock(System.Object, Boolean ByRef)
   at System.Windows.ResourceDictionary.GetValue(System.Object, Boolean ByRef)
   at Telerik.Windows.Controls.RadRibbonWindow..ctor()
   at MyApp.MainWindow..ctor()

Exception Info: System.Windows.Markup.XamlParseException
   at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
   at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
   at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__1_0(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at MyApp.App.Main()

 

 

As I understand, our software used to work on all, or some of the computers, but then it stopped (might be due to software install, Windows update, or configuration change in Windows).

I already tried uninstalling few Windows updates, and reparing the installed .net framework (4.7.1), but it didn't help.

 

 

Are you familiar with this issue, or know what can cause it?

If so, how can I solve it? (uninstall something, repair some installation, or change some windows configuration).

As I understand from the exception, the error is related to the RibbonWindow, but I'm not sure why it fails. 

 

 

Please help.

Thank.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 15 Mar 2018
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
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
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?