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

Multiple issues using RadScheduler in MVC project

2 Answers 91 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Camilo Torres
Top achievements
Rank 1
Camilo Torres asked on 27 Nov 2011, 03:22 PM
Hi,

I am using RadScheduler in MVC 3.0 project. I have few issues while using it. It would be of great help if you can direct me on the resolution for following:

1. How can I set MinutesPerRow property on server side? (As per another forum thread, MinutesPerRow cannot be set on client side).
2. I am trying to use GroupBy property to display multiple resources side by side in RadScheduler. I am using ResourcePopulationMode="ClientSide". But when I use GroupBy property, I get following Javascript error (in js file):

Microsoft JScript runtime error: Unable to get value of the property 'get_visibleRangeStart': object is null or undefined

3. I am trying to add a CheckBox control on the appointment so that it can be selected. But when I add <AppointmentTemplate> tag and add the markup it does not have any affect. Here is the markup that I am using:

<AdvancedForm Modal="true" />
    <AppointmentTemplate>
        <div>
            <asp:CheckBox ID="EligibilityCheck" runat="server" Text="Eligibility" TextAlign="Left" Checked="false" AutoPostBack="true" />
            <br />
            <%#Eval("Subject") %>
        </div>
</AppointmentTemplate>


I am using version 2011.1.519.40 of Telerik.Web.UI.dll

Thanks in advance!!


2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Nov 2011, 03:28 PM
Hi Camilo,

1. You are right that the MinutesPerRow property can be set dynamically only server-side. I am not sure if and how this can be achieved in MVC. I suggest you consult with our MVC experts by posting your question in the ASP.NET MVC forums.

2. Resource grouping requires setting ResourcePopulationMode="ServerSide".

3. The AppointmentTemplate is not supported in client-side binding mode. You can use a plugin for jQuery - Templates as shown in the Web Service binding demo.

We will be glad to answer any other questions you might have.


Greetings, Peter
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
Raj
Top achievements
Rank 1
answered on 01 Jan 2013, 09:31 PM
BTW: 
When in the (aspx) View of the MVC where the Scheduler Control is added, the below is where the ResourcePopulationMode value is set.

<telerik:RadScheduler ID="RadScheduler1" runat="server"
    EnableAdvancedForm="False" StartEditingInAdvancedForm="False"
    GroupBy="Room, Date" GroupingDirection="Horizontal">
    <WebServiceSettings Path="~/Models/CalendarWebService.asmx" ResourcePopulationMode="ServerSide" />
    <AdvancedForm Modal="false" />
</telerik:RadScheduler>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
Tags
Scheduler
Asked by
Camilo Torres
Top achievements
Rank 1
Answers by
Peter
Telerik team
Raj
Top achievements
Rank 1
Share this question
or