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

Scheduler Cascade Resources in Timeline View

3 Answers 108 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sema
Top achievements
Rank 1
Sema asked on 15 Feb 2016, 01:29 PM

Hello,

 

I have a Scheduler Resources and i must show in cascade showing with 4 column

Example

|Name|Type|Status|Active|Days|

|A       | T     | T       | 1      | Days|

|B       | T     | K       | 0      | Days|

 

but i cant find how to do this. All examples show included resources not connected others.

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 16 Feb 2016, 09:34 AM
Hello Sema,

To achieve the desired behavior you should define custom editor template and set the "CascadeFrom" option of the child DropDownLists / ComboBoxes. For example of creating custom editor template you can check the following demo:
Please check the example below of enabling the cascading between the "Room" and "Attendee" editors:

@(Html.Kendo().DropDownListFor(model => model.RoomID)
    .HtmlAttributes(new { data_bind = "value:RoomID", style = "width: 200px" })
    .DataTextField("Text")
    .DataValueField("RoomID")
    .OptionLabel("None")
    .ValuePrimitive(true)
    .Template("<span class='k-scheduler-mark' style='background-color:\\#= data.Color?Color:'' \\#'></span>\\#=Text\\#")
    .BindTo(new[] {
            new { Text = "Meeting Room 101", RoomID = 1 },
            new { Text = "Meeting Room 201", RoomID = 2 }
        }).ToClientTemplate()
)
 
@(Html.Kendo().DropDownListFor(model => model.Attendee)
    .HtmlAttributes(new { data_bind = "value:Attendees" })
    .DataTextField("Text")
    .DataValueField("AttendeeID")
    .ValuePrimitive(true)
    .CascadeFrom("RoomID")
    .BindTo(new[] {
            new { Text = "Alex", AttendeeID = 1, RoomID = 1 },
            new { Text = "Bob", AttendeeID = 2, RoomID = 2 },
            new { Text = "Charlie", AttendeeID = 3, RoomID = 2 }
        })
)

Regards,
Vladimir Iliev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Sema
Top achievements
Rank 1
answered on 16 Feb 2016, 12:44 PM
Its wrong answer. I dont want custom editing. I want only show 4 cascade column and days in scheduler. I dont want editing, but you talk about custom editing. If you read my post, its talk about ask you how can i view 4 custom relational column.
0
Vladimir Iliev
Telerik team
answered on 17 Feb 2016, 01:40 PM
Hello Sema,

I'm not sure that I understand correctly what do you mean with "relational columns" - could you pleas elaborate more on this?

For example if you would like to have different child groups for each parent group than please note that this feature currently is not supported out of the box and custom solution would be needed.

Regards,
Vladimir Iliev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
Sema
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Sema
Top achievements
Rank 1
Share this question
or