Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
MCP Servers
AI for UI
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
Hi,
I want to change the Time Button Style of RadDateTimePicker, like mouseover or pressed style.
But i cannot find it in tempalte.
Hi JIJIKO,
In order to achieve the desired approach, you need to modify the RadClockItemStyle. Please check the code snippet below:
<Style TargetType="telerik:RadClockItem"> <Setter Property="HorizontalContentAlignment" Value="Center"/> <Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property="Padding" Value="5 3"/> <Setter Property="SnapsToDevicePixels" Value="True"/> <Setter Property="FocusVisualStyle" Value="{x:Null}"/> <Setter Property="BorderBrush" Value="{x:Null}"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="Background" Value="Transparent"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="telerik:RadClockItem"> <Grid x:Name="LayoutRoot" Background="Transparent"> <Border x:Name="BorderVisual" CornerRadius="1" Margin="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"/> <ContentPresenter x:Name="Content" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}"/> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsEnabled" Value="False"> <Setter TargetName="Content" Property="Opacity" Value="0.5"/> </Trigger> <Trigger Property="IsMouseOver" Value="True"> <Setter TargetName="BorderVisual" Property="Background" Value="LightGreen"/> <Setter TargetName="BorderVisual" Property="BorderBrush" Value="LightGreen"/> </Trigger> <Trigger Property="IsSelected" Value="True"> <Setter TargetName="BorderVisual" Property="Background" Value="LightBlue"/> <Setter TargetName="BorderVisual" Property="BorderBrush" Value="LightBlue"/> </Trigger> <Trigger Property="IsKeyboardFocusWithin" Value="True"/> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>
I hope this 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.