Scheduler Cascade Resources in Timeline View

4 posts, 0 answers
  1. sema
    sema avatar
    5 posts
    Member since:
    Jun 2015

    Posted 15 Feb Link to this post

    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.

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 16 Feb Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. sema
    sema avatar
    5 posts
    Member since:
    Jun 2015

    Posted 16 Feb in reply to Vladimir Iliev Link to this post

    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.
  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 17 Feb Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready