DatePicker Resize problem

2 posts, 1 answers
  1. Ronald Evers
    Ronald Evers avatar
    26 posts
    Member since:
    Dec 2009

    Posted 02 Nov 2010 Link to this post

    Good day,

    I'm having some issues with the DatePicker and I'm really stuck. When I try and give the datepicker a height of 22 the button on the right that shows the date dropdown doesn't stretch. No matter what height I give the control the button will always stay the same height while the control itself does resize. This causes half of the button to dissapear when give the DatePicker a height of 22. Thing is, I've made a test solution outside of the solution I'm trying to implement the DatePicker in and it works fine. For example, I made 2 different xaml controls in the different solutions and the code is identical and as follows:

    <UserControl x:Class="DateBoxTest.MainPage"
        xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
        mc:Ignorable="d"
        d:DesignHeight="200" d:DesignWidth="400">
        <Grid x:Name="LayoutRoot" Background="White">
            <my:RadDatePicker />
        </Grid>
    </UserControl>

    Extremely basic. See the attached image for a visual example of what happens. In the test solution it works fine and the button stretches, so if I give it a height of 22 it fits perfectly. In the other solution it doesn't.
    Now I realise that I must be doing something wrong in the solution I'm trying to implement the datepicker. However I can't for the life of me figure out what. Is there anything that can cause this kind of behavior that I should look for in the solution where it's nor working?
  2. Answer
    Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 05 Nov 2010 Link to this post

    Hello Ronald Evers,

    As a first step you can check if any implicit style is applied to the button itself. Also can you isolate the problem in a small separate solution and send us.

    Best wishes,
    Kaloyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top