Declined
Last Updated: 15 Mar 2023 12:22 by ADMIN
Larry
Created on: 03 Nov 2022 09:32
Category: ListPicker
Type: Bug Report
1
Pickers: Cancel and Accept Text are not applied through style

SDKBrowserMaui application, change PopupStyling.xaml and see that text changes are not reflected in the control.

For example, changing it to:

            <Style TargetType="Button" x:Key="cancelButtonStyle">
                <Setter Property="BackgroundColor" Value="Transparent"/>
                <Setter Property="Text" Value="bob"/>
                <Setter Property="TextColor" Value="#1188FF"/>
            </Style>

Text is not applied. It affects all pickers.

Workaround: 

Set Accept and Cancel Button text properties to the pickers: 

<telerikInput:RadDatePicker >
            <telerikInput:RadDatePicker.SelectorSettings>
                <telerikInput:PickerPopupSelectorSettings 
                                                          HeaderLabelText="Date Picker"
                                                          AcceptButtonText="Yes"
                                                          CancelButtonText="X"/>
            </telerikInput:RadDatePicker.SelectorSettings>
        </telerikInput:RadDatePicker>

1 comment
ADMIN
Didi
Posted on: 27 Feb 2023 13:23

Hello Larry,

I have changed the status of this item to Declined, and here is the reason for this.

We have exposed properties for Accept and Cancel button text. You must use these properties for changing the text of these buttons. Using the Accept and cancel button styles won't change the text of the buttons. This is by control implementation. 

We have changed our SDK examples with the correct approach.

Regards,
Didi
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/.