Message StartEndDatePicker.EndPicker

6 posts, 1 answers
  1. Thiago Ferreira
    Thiago Ferreira avatar
    11 posts
    Member since:
    May 2010

    Posted 22 Mar 2011 Link to this post

    Hello,

    I use 2 DateTimePicker, and i set the property "telerik:StartEndDatePicker.EndPicker". I'd like to disable the message "The end date you enterd occurs before the start date.". How can i do this?

    Thanks
  2. Thiago Ferreira
    Thiago Ferreira avatar
    11 posts
    Member since:
    May 2010

    Posted 24 Mar 2011 Link to this post

    Someone can help me?
    I need to solve this with some urgency.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 24 Mar 2011 Link to this post

    Hi Thiago,

    We don't recommend using StartEndDatePicker.EndPicker property outside RadScheduler.  You can check this example  about data validation of RadDateTimePicker control.

    Regards,
    Yana
    the Telerik team
  5. Thiago Ferreira
    Thiago Ferreira avatar
    11 posts
    Member since:
    May 2010

    Posted 24 Mar 2011 Link to this post

    Hi Yana,

    But i'd like to disable de manssage when i use StartEndDatePicker.EndPicker property inside RadScheduler.
    Because, i'm using this template . Are there some property that i need to set in this part?

    <Grid DataContext="{TemplateBinding EditedAppointment}" Background="{TemplateBinding Background}" Width="430" Height="300">
                                <Grid.RowDefinitions>
                                   <RowDefinition Height="Auto" />
                                   <RowDefinition Height="Auto" />
                                   <RowDefinition Height="Auto" />
                                   <RowDefinition Height="Auto" />
                                   <RowDefinition Height="*" MinHeight="100" />
                                   <RowDefinition Height="Auto" />
                               </Grid.RowDefinitions>
                               <Grid.ColumnDefinitions>
                                   <ColumnDefinition Width="Auto" MinWidth="100" />
                                   <ColumnDefinition Width="*" MinWidth="315"/>
                               </Grid.ColumnDefinitions>
      
                               <Label Target="{Binding ElementName=Subject}" Content="Subject" />
                               <TextBox x:Name="Subject" Grid.Column="1" TabIndex="0" Text="{Binding Path=Subject}" MaxLength="255" Margin="10, 10, 20, 2" />
      
                               <Label Grid.Row="1" Target="{Binding ElementName=StartDateTime}" Content="Start" />
                               <telerik:DateTimePicker x:Name="StartDateTime" Grid.Row="1"  Grid.Column="1" Margin="10, 10, 0, 2"
                                          IsEnabled="False"  SelectedDateTime="{Binding Path=Start, Mode=TwoWay}" telerik:StartEndDatePicker.EndPicker="{Binding ElementName=EndDateTime}" />
      
                               <Label Grid.Row="2" Target="{Binding ElementName=EndDateTime}" Content="End" />
                               <telerik:DateTimePicker x:Name="EndDateTime"   Grid.Row="2" Grid.Column="1" Margin="10, 10, 0, 2"
                                         IsEnabled="False"    SelectedDateTime="{Binding Path=End, Mode=TwoWay}" />
      
                               <CheckBox Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left"
                       IsChecked="{Binding Path=IsAllDayEvent}" Margin="10, 10, 0, 2" x:Name="allDayEventCheckbox"  IsEnabled="False" Content="All day event"></CheckBox>
      
                               <Label Grid.Row="4" Target="{Binding ElementName=Body}" Content="Body" />
                               <TextBox Name="Body" Grid.Row="4"  Grid.Column="1" Text="{Binding Path=Body}" TextWrapping ="NoWrap"
                    ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
                    AcceptsReturn="true" AcceptsTab="True" Margin="10, 10, 20, 2" />
                                
                               <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" Margin="10, 10, 0, 10">
                                   <Button Command="telerik:RadSchedulerCommands.SaveAppointment" Content="Save and Close" />
                                   <Button Command="telerik:RadSchedulerCommands.EditRecurrenceRule" Margin="10, 0, 0, 0" Content="Edit recurrence" />
                                   <Button Command="telerik:RadSchedulerCommands.EditParentAppointment" Margin="10, 0, 0, 0" Content="Edit parent" />
                               </StackPanel>
    </Grid>


    I'm using WPF controls not SilverLight controls like your example.
    Thank you
  6. Thiago Ferreira
    Thiago Ferreira avatar
    11 posts
    Member since:
    May 2010

    Posted 28 Mar 2011 Link to this post

    Yana?? Did you forget my problem??
    I need your help!
  7. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 29 Mar 2011 Link to this post

    Hello Thiago Ferreira,

    This message in the RadScheduler is internally set and cannot be easily overridden. You can replace scheduler datepickers with RadDatePickers in the template. I've attached an example to demonstrate the approach. Please try it and let us know how it goes.

    Regards,
    Yana
    the Telerik team
Back to Top
UI for WPF is Visual Studio 2017 Ready