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

Problem to show the description field

4 Answers 132 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Li Zhou
Top achievements
Rank 1
Li Zhou asked on 12 Jul 2010, 03:37 PM
I must missed something simple, but I just cannot have the description field show up on the schdeuler (please see screen shot)
I have set EnableDescriptionField="true", DataDescriptionField="Description" , also set AppointmentTemplate.
When I edit the event, the description is in the edit form.  Could someone please take a look?  Thanks


<

 

telerik:RadScheduler runat="server" ID="Sched" Skin="Office2007" ReadOnly="false"

 

 

 

Height="700px" EnableDescriptionField="true"

 

 

 

AppointmentStyleMode="Default"

 

 

 

DataDescriptionField="Description"

 

 

 

DataKeyField="ID"

 

 

 

DataSubjectField="Subject"

 

 

 

DataStartField="Start"

 

 

 

DataEndField="End"

 

 

 

DataRecurrenceField="RecurrenceRule"

 

 

 

DataRecurrenceParentKeyField="RecurrenceParentID">

 

 

 

<AdvancedForm Modal="true" />

 

 

 

<AppointmentTemplate>

 

 

 

<div><%# Eval("Subject") %></div>

 

 

 

<div style="font-style: italic;"><%# Eval("Description") %></div>

 

 

 

</AppointmentTemplate>

 

 

 

<TimeSlotContextMenuSettings EnableDefault="true" />

 

 

 

<AppointmentContextMenuSettings EnableDefault="true" />

 

 

 

<WebServiceSettings Path="~/Services/CalendarService.asmx" />

 

 

 

</telerik:RadScheduler>

 

 

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Jul 2010, 05:25 PM
Hello Li,

Please, refer to this help topic. Since you don't use a provider you should not set - EnableDescriptionField="true". 

Best wishes,
Peter
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
0
Li Zhou
Top achievements
Rank 1
answered on 12 Jul 2010, 06:23 PM
I am using my custom SQL provider with Web service binding.  Below is my web.config

<telerik.web.ui>
    <radScheduler defaultAppointmentProvider="Scheduler">
      <appointmentProviders>
        <add name="Scheduler" type="MyProject.MySchedulerProvider" connectionStringName="MyDB" persistChanges="true" />
      </appointmentProviders>
    </radScheduler>
  </telerik.web.ui>

AS you can see in the screenshot in my origonal post, everything works fine for the custom provider by inserting, edit appoinments and the Description field shows up in the edit form.  I tried both with and without EnableDescriptionField="true", the description field still NOT showing up in the schedular. 

Any place else I should look at?  I am using 2010 Q1 trial version. Thanks
0
Peter
Telerik team
answered on 14 Jul 2010, 02:10 PM
Hello Li,

Thanks for the additional information. With Scheduler / Web Service binding, you need to use the client API to create appointment template manually :
<script type="text/javascript">
        //<![CDATA[
            // Fired when an appointment is rendered
            function appointmentCreated(sender, eventArgs)
            {
                var $ = $telerik.$; // jQuery alias
                var apt = eventArgs.get_appointment();
                $(".rsAptDelete", apt.get_element()) // Locate the delete icon element
                    .before(
                        // And insert a div with the appointment description before it
                        $("<div style='font-style:italic;'></div>").text(apt.get_description())
                    );
            }
         //]]>
        </script>



Greetings,
Peter
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
0
Li Zhou
Top achievements
Rank 1
answered on 14 Jul 2010, 03:46 PM
Works like a charm.  Thanks!
Tags
Scheduler
Asked by
Li Zhou
Top achievements
Rank 1
Answers by
Peter
Telerik team
Li Zhou
Top achievements
Rank 1
Share this question
or