This is a migrated thread and some comments may be shown as answers.

Bug on change selectedDate on Program

3 Answers 24 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
shahab
Top achievements
Rank 1
shahab asked on 26 Apr 2013, 06:03 AM
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

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 Apr 2013, 01:29 PM
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.
0
shahab
Top achievements
Rank 1
answered on 30 Apr 2013, 06:21 PM
   <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 />

0
Plamen
Telerik team
answered on 03 May 2013, 01:25 PM
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.
Tags
Scheduler
Asked by
shahab
Top achievements
Rank 1
Answers by
Plamen
Telerik team
shahab
Top achievements
Rank 1
Share this question
or