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

How can I load data on Vertical Grouping Scheduler

2 Answers 96 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kevork
Top achievements
Rank 2
Kevork asked on 04 Jun 2015, 05:14 AM

Hello,

I have loaded data in Horizontal grouping Scheduler but could not load into vertical grouping scheduler. Grouping are showing correctly but no data is coming into the cells. 

Can you please give me the sample of "Vertical_Read" and "Vertical_Create" action methods?

Here is my scheduler vertical grouping's razor code:

                     @(Html.Kendo().Scheduler<TaskViewModel>()
                        .Name("schedulerVertical")
                        .Selectable(true)
                        .Date(new DateTime(2015, 5, 24))
                        .StartTime(new DateTime(2015, 5, 24, 7, 00, 00))
                        .Height(600)
                        .Views(views =>
                        {
                            views.DayView();
                            views.WeekView(weekView => weekView.Selected(true));
                            views.MonthView();
                            views.TimelineView();
                        })
                        .Timezone("Etc/UTC")
                        .Group(group => group.Resources("Skills", "Techs").Orientation(SchedulerGroupOrientation.Vertical))
                        .Resources(resource =>
                        {
                            resource.Add(m => m.SkillID)
                                .Title("Skills")
                                .Name("Skills")
                                .DataTextField("SkillName")
                                .DataValueField("SkillID")
                                .DataColorField("Color")
                                .DataSource(d => d.Read("Skills", "Scheduler"));
                            resource.Add(m => m.Techs)
                                .Title("Techs")
                                .Name("Techs")
                                .Multiple(true)
                                .DataTextField("TechName")
                                .DataValueField("TechID")
                                .DataSource(d => d.Read("Techs", "Scheduler"));
                        })
                        .DataSource(d => d
                                .Model(m =>
                                {
                                    m.Id(f => f.MeetingID);
                                    m.Field(f => f.Title).DefaultValue("No title");
                                    m.RecurrenceId(f => f.RecurrenceID);
                                    m.Field(f => f.Title).DefaultValue("No title");
                                })
                                .Read("Vertical_Read", "Scheduler")
                                    .Create("Vertical_Create", "Scheduler")
                                    .Destroy("Vertical_Delete", "Scheduler")
                                    .Update("Vertical_Update", "Scheduler")
                        )
                    )

 

 Can you please give me the sample of "Vertical_Read" and "Vertical_Create" action methods?

2 Answers, 1 is accepted

Sort by
0
Kevork
Top achievements
Rank 2
answered on 04 Jun 2015, 05:25 AM

Here is the scheduler vertical grouping.

 

There are sample code of Read action method but there is no definition of or structure or GetAll method there.

0
Accepted
Vladimir Iliev
Telerik team
answered on 04 Jun 2015, 10:23 AM
Hi,

I already answered to this query in duplicated support ticket created by you - #941276. Please keep in mind that it is highly recommended that you keep related questions in one support thread or a forum post, so that we can easily keep track of your support history and provide better answers in a shorter time.

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
Kevork
Top achievements
Rank 2
Answers by
Kevork
Top achievements
Rank 2
Vladimir Iliev
Telerik team
Share this question
or