Bug on change selectedDate on Program

4 posts, 0 answers
  1. shahab
    shahab avatar
    58 posts
    Member since:
    Mar 2009

    Posted 26 Apr 2013 Link to this post

    I use Asp_Calendar Control to set Scheduler SelectedDate. In Edit or Insert Form if EndTime and StartTime do not change everything is ok and selected Date in e.Appointment.Start.Date and e.Appointment.End.Date is equal to Calendar and Scheduler selectedDate.
    But when user changes startTime and endTime in Edit or Insert Form, e.Appointment.Start.Date and e.Appointment.End.Date are equal to first initialized scheduler selectedDate
  2. Plamen
    Admin
    Plamen avatar
    3080 posts

    Posted 30 Apr 2013 Link to this post

    Hi shahab,

     
    I have tested the scenario in a sample web page but could not observe the unusual behavior. Here is the video of my test-please review it and let me know what else should I do in order to replicate it locally and be more helpful.

    Regards,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. shahab
    shahab avatar
    58 posts
    Member since:
    Mar 2009

    Posted 30 Apr 2013 Link to this post

       <AdvancedInsertTemplate>
    <div class="qsfexAdvEditControlWrapper">
                                      <asp:Label ID="Label7" AssociatedControlID="StartTime" runat="server" CssClass="inline-label">از ساعت:</asp:Label>
                                      <br />
                                      <telerik:RadTimePicker runat="server" ID="StartTime" Width="95%"
                                          SelectedDate='<%# Bind("Start") %>'>
                                          <DateInput ID="StartDateInput" runat="server" Enabled="False" EmptyMessage="داده اجباری" EnableSingleInputRendering="false" DateFormat="HH:mm" DisplayDateFormat="HH:mm" />
                                          <TimePopupButton Visible="False"/>
                                          <TimeView ID="StartTimeView" runat="server" Columns="2" ShowHeader="true"
                                              StartTime="08:00" EndTime="20:00" Interval="00:15" HeaderText="از ساعت" Height="200px" Width="150px" TimeFormat="HH:mm" />
                                           <DatePopupButton />
                                      </telerik:RadTimePicker>
                                      <asp:RequiredFieldValidator ID="StartRequiredFieldValidator" runat="Server" ControlToValidate="StartTime"
                                          ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                                  </div>
                    </AdvancedInsertTemplate>
    I have a problem with selected date on SelectedDateCalendar:
    http://www.telerik.com/community/forums/aspnet-ajax/scheduler/selected-time-on-scheduler-selecteddatecalendar.aspx
    Therefor to solve this problem I used Asp:Calendar to set scheduler selectedDate.
    1.Select for example 2 days later, For Exmaple today is 4-30-2013, select 5-02-2013
    2. Now in InsertForm, Just in InsertForm, When I do not change startTime and EndTime everything is ok,
    3. but in insertForm if I select different startTime or EndTime and change loaded Time e.Appointment.Start.Date and e.Appointment.End.Date are equal to first initialized scheduler selectedDate.
    I use InlineInsertForm:

    Notice I do not let user set Date on InsertForm:                
    <
    DatePopupButton />

  4. Plamen
    Admin
    Plamen avatar
    3080 posts

    Posted 03 May 2013 Link to this post

    Hello shahab,

     
    Here is my sample web page where the issue does not seems to appear. Please review it let me know if I am missing something.


    Kind regards,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top