TodayButton binding error

4 Answers 9 Views
DateTimePicker
Marcel
Top achievements
Rank 1
Marcel asked on 14 Mar 2022, 01:09 PM

I updated our telerik to the latest NoXaml version of the libraries.

 

I get the following binding error:

Cannot find source for binding with reference 'ElementName=TodayButtonBorder'. BindingExpression:Path=CornerRadius; DataItem=null; target element is 'RadButton' (Name='TodayButton'); target property is 'CornerRadius' (type 'CornerRadius')

I think this is a problem within the DateTimePicker control. I don't have any controls by the name 'TodayButton'.

 

Can someone from telerik flag this as a problem?

4 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 15 Mar 2022, 07:53 AM

Hello Marcel,

I've tried to reproduce the reported problem but to no avail. Can you give more information about the setup of RadDateTimePicke control at your side? Which theme do you use in the project? Do you have any custom styles?

More information about the error - TodayButtonBorder is separated inside the ControlTemplate of RadDateTimePicker control. What I can suggest is to try manually replacing all the references, clean and rebuild the project and see if the error is still observed.

I hope it helps.

Regards,
Masha
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Max
Top achievements
Rank 1
Veteran
Iron
answered on 15 Mar 2022, 10:57 AM

This was my question on another account...

I'm using the NoXaml library using the Fluent theme. 

I don't have any separate Style overrides on this control.

My current code is simply:

<telerik:RadDatePicker
    Padding="0"
    HorizontalAlignment="Left"
    Background="{telerik:FluentResource ResourceKey=ComplementaryBrush}"
    BorderBrush="DarkGray"
    BorderThickness="1"
    Cursor="Hand"
    Focusable="False"
    Grid.ZIndex="2"
    IsReadOnly="False"
    SelectableDateEnd="{Binding ElementName=UserControl, Path=FilterSettings.FilterStart.DateTime}"
    SelectedValue="{Binding ElementName=UserControl, Path=AbsoluteStart.DateTime}"
    SizeChanged="RadDatePicker_OnSizeChanged"
    ToolTip="Set lower limit" />

 

The Theme is inserted in my App.xaml, like this:


<ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/System.Windows.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Data.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.FileDialogs.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Fixeddocumentviewersui.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Input.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.chart.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Documents.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.virtualgrid.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.spreadsheet.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.syntaxeditor.xaml" />

0
Masha
Telerik team
answered on 16 Mar 2022, 07:06 AM

Hi Marcel,

Thank you for the code snippet. I was able to reproduce the described problem with official release binaries. I'm happy to inform you that TodayButton's element name binding causing an output error has already been fixed with our latest internal build.

I hope this helps.

Regards,
Masha
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Max
Top achievements
Rank 1
Veteran
Iron
answered on 16 Mar 2022, 07:58 AM

Thank you Masha,

I'll add a filter to the binding errors for now.

Tags
DateTimePicker
Asked by
Marcel
Top achievements
Rank 1
Answers by
Masha
Telerik team
Max
Top achievements
Rank 1
Veteran
Iron
Share this question
or