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

Edit form will not open

2 Answers 47 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 2
Dan asked on 18 Aug 2010, 02:03 PM
I'm using Ajax Q1 2010 net 3.5 controls and have a RadScheduler with an AdvancedEditTemplate.  Code is below.  The problem is that when I right-click on an appointment and click edit, the edit form does nopt display and the day view reverts back to today's date.  There is no error or any indication what the problem is.  Help?
<telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Simple" 
                DataKeyField="ID" DataSubjectField="subject" DataStartField="start" DataEndField="end"
                    Height="650px" Width="375px" SelectedView="DayView"
                    ShowFooter="true" RowHeight="20px"  ShowViewTabs="false"
                    DayStartTime="08:00:00" DayEndTime="17:00:00"                        
                    FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
                    EnableDescriptionField="true"
                    AppointmentStyleMode="Default"
                    EnableResourceEditing="true"
                    OnAppointmentDelete="RadScheduler1_AppointmentDelete"
                    OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
                    OnAppointmentInsert="RadScheduler1_AppointmentInsert">
                <AdvancedForm Modal="true" />
                <TimelineView UserSelectable="false" />
                <AppointmentTemplate>
                    <%# Eval("Subject") %>
                </AppointmentTemplate>
                <TimeSlotContextMenuSettings EnableDefault="true" />
                <AppointmentContextMenuSettings EnableDefault="true" />
                <ResourceTypes>
                    <telerik:ResourceType KeyField="CPK_CATEGORY" Name="Department" TextField="category" ForeignKeyField="category" DataSourceID="dsTodoCategory" />
                </ResourceTypes>
                 <AdvancedEditTemplate>
                    <div id="schform">
                        <table style="width: 80%" align="center">
                            <tr>
                                <td style="width: 25%">Patient:</td>
                                <td style="width: 75%"></td>
                            </tr>
                              
                            <tr>
                                <td>Appt/Task:</td>
                                <td>
                                    <telerik:RadComboBox ID="cmbTodo" runat="server" DataSourceID="dsTodoList" TabIndex="1"
                                        DataTextField="subject" DataValueField="CPK_TODOINFO" Height="300px" Width="300px"
                                        Text='<%# Bind("subject") %>' Skin="Vista" EmptyMessage="- Select -"
                                        ShowDropDownOnTextboxClick="false" AllowCustomText="True">
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>Date:</td>
                                <td>
                                    <telerik:RadDatePicker Skin="WebBlue" ID="txtDueDate" runat="server" DbSelectedDate='<%# Bind("start") %>' BackColor="#f7f8f9" TabIndex="2">
                                        <Calendar ID="Calendar1" Skin="WebBlue" runat="server" ShowRowHeaders="false" />
                                    </telerik:RadDatePicker>
                                </td>
                            </tr>
                              
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="btnUpdate" runat="server" Text="Update" CommandName="Update" />
                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="false" />
                                </td>
                            </tr>
                        </table>
                    </div>
                 </AdvancedEditTemplate>
            </telerik:RadScheduler>

2 Answers, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 2
answered on 18 Aug 2010, 03:06 PM
The form would not appear because I needed to wrap the template with:

<

 

div class="rsAdvancedEdit" style="position: relative">

 


So, now the form appears, but my custom resource (Name="Department") is not showing in the form.  How can I get this to display?

Dan
0
Accepted
Veronica
Telerik team
answered on 24 Aug 2010, 08:40 AM
Hello Dan,

I am glad you were able to find the solution in your previous post on your own.

In your code I can not see where you use a control for the "Department" resource.

When you customize the Advanced Form you'll need to define a custom controls for everything: custom attributes, resources, etc as you did for the Date and Subject.

Hope this helps. 

Regards,
Veronica Milcheva
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
Tags
Scheduler
Asked by
Dan
Top achievements
Rank 2
Answers by
Dan
Top achievements
Rank 2
Veronica
Telerik team
Share this question
or