Niveles en el programador

Buen días
es posible que el programador tenga mas de dos niveles, es decir,
Room-->Owner-->Operation,
si, si es posible me podria dar un ejemplo
Gracas

3 Replies

NR Nevitha Ravi Syncfusion Team December 7, 2017 02:33 PM UTC

Hi Veronica, 

Thank you for contacting Syncfusion Support. 

Yes, it is possible to render multiple level resources in Scheduler and for the same we have prepared a sample for your reference which can be downloaded from the below location. 


<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" CurrentDate="5/5/2014" runat="server" DataSourceID="SqlDataSource1"> 
        <Group Resources="Rooms,Owners,Operations" /> 
        <Resources> 
            <ej:Resources Field="RoomId" Name="Rooms" Title="Room" AllowMultiple="true"> 
                <ResourceSettings Color="color" Id="id" Text="text"></ResourceSettings> 
            </ej:Resources> 
            <ej:Resources Field="OwnerId" Name="Owners" Title="Owner" AllowMultiple="true"> 
                <ResourceSettings Color="color" Id="id" Text="text" GroupId="groupId"></ResourceSettings> 
            </ej:Resources> 
            <ej:Resources Field="OperationId" Name="Operations" Title="Operations" AllowMultiple="true"> 
                <ResourceSettings Color="color" Id="id" Text="text" GroupId="groupId"></ResourceSettings> 
            </ej:Resources> 
        </Resources> 
        <AppointmentSettings Id="Id" Subject="Subject" AllDay="AllDay" StartTime="StartTime" EndTime="EndTime" Recurrence="Recurrence" RecurrenceRule="RecurrenceRule" ResourceFields="RoomId,OwnerId,OperationId" /> 
</ej:Schedule> 


Regards. 
Nevitha. 



VO veronica orozco December 8, 2017 12:24 AM UTC

Gracias, 
otra pregunta teniendo estos 3 recursos como puedeo hacer un BlockoutSettings, ya que en ResourceId estoy poniendo el id del recurso Operation, pero no me coge, me sale este mensaje de la imagen adjuntas

Gracias

Attachment: block_1262f46b.7z


NR Nevitha Ravi Syncfusion Team December 8, 2017 12:50 PM UTC

Hi Veronica,  

Thanks for you update. 

We suspect that groupId field for blockoutSettings is not defined which could be the cause for the issue “script error when rendering Scheduler”.  We have prepared a sample for your reference which can be downloaded from the below location. 
 
 
<ej:Schedule ID="Schedule1" ClientIDMode="Static" Height="525px" Width="100%" CurrentDate="5/5/2014" runat="server" DataSourceID="SqlDataSource1"> 
        <Group Resources="Rooms,Owners,Operations" /> 
        <Resources> 
            <ej:Resources Field="RoomId" Name="Rooms" Title="Room" AllowMultiple="true"> 
                <ResourceSettings Color="color" Id="id" Text="text"></ResourceSettings> 
            </ej:Resources> 
            <ej:Resources Field="OwnerId" Name="Owners" Title="Owner" AllowMultiple="true"> 
                <ResourceSettings Color="color" Id="id" Text="text" GroupId="groupId"></ResourceSettings> 
            </ej:Resources> 
            <ej:Resources Field="OperationId" Name="Operations" Title="Operations" AllowMultiple="true"> 
                <ResourceSettings Color="color" Id="id" Text="text" GroupId="groupId"></ResourceSettings> 
            </ej:Resources> 
        </Resources> 
        <BlockoutSettings Enable="true" Id="Id" Subject="Subject" StartTime="StartTime" EndTime="EndTime" IsBlockAppointment="IsBlockAppointment" IsAllDay="IsAllDay" ResourceId="ResourceId" GroupId ="GroupId" /> 
        <AppointmentSettings Id="Id" Subject="Subject" AllDay="AllDay" StartTime="StartTime" EndTime="EndTime" Recurrence="Recurrence" RecurrenceRule="RecurrenceRule" ResourceFields="RoomId,OwnerId,OperationId" /> 
</ej:Schedule> 
Controller: 
List<BlockData> blockData = new List<BlockData>(); 
            blockData.Add(new BlockData { Id = 1, Subject = "Service", StartTime = new DateTime(2014, 5, 5, 9, 00, 00), EndTime = new DateTime(2014, 5, 5, 10, 00, 00), IsBlockAppointment = true, ResourceId = "6", GroupId ="2" }); 
            Schedule1.BlockoutSettings.DataSource = blockData; 
public class BlockData 
        { 
            public int Id { get; set; } 
            public string Subject { get; set; } 
            public DateTime StartTime { get; set; } 
            public DateTime EndTime { get; set; } 
            public Boolean IsBlockAppointment { get; set; } 
            public Boolean IsAllDay { get; set; } 
            public string ResourceId { get; set; } 
            public string GroupId { get; set; } 
        } 
 

Regards, 
Nevitha 


Loader.
Up arrow icon