I cannot set the height of RadDataPager

0 Answers 60 Views
DataPager
Paul
Top achievements
Rank 2
Iron
Iron
Iron
Paul asked on 04 Apr 2024, 02:36 PM


  <Style x:Key="CrashPager"
         TargetType="telerik:RadDataPager"
         BasedOn="{StaticResource {x:Type telerik:RadDataPager}}">
      <Setter Property="Margin"
              Value="0,0,0,0" />
      <Setter Property="Padding"
              Value="0,0,0,0" />
      <Setter Property="Height"
              Value="Auto" />
      <Setter Property="VerticalAlignment"
              Value="Top" />
      <Setter Property="VerticalContentAlignment"
              Value="Top" />
  </Style>

 

The code above has no margin and no padding.
Something is chopping the bottom from the RadDataPager control.
My guess is that this is being caused by the theme.
How can I get to show the control correctly?

 

Stenly
Telerik team
commented on 09 Apr 2024, 01:36 PM

Could you share what is the version of the assemblies that are used on your end (Xaml or NoXaml)?

If the Xaml version of the assemblies is used, could you try removing the BasedOn property from the Style that you provided and see if the unwanted behavior is still present?

<Style x:Key="CrashPager" TargetType="telerik:RadDataPager">
    <Setter Property="Margin" Value="0,0,0,0" />
    <Setter Property="Padding" Value="0,0,0,0" />
    <Setter Property="Height" Value="Auto" />
    <Setter Property="VerticalAlignment" Value="Top" />
    <Setter Property="VerticalContentAlignment" Value="Top" />
</Style>

If the above suggestion does not help, could you share a sample project that showcases this behavior?

No answers yet. Maybe you can help?

Tags
DataPager
Asked by
Paul
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or