search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How we can set the Y axis focus for given date and resoucce in Day Pilot Scheduler

Asked by Vijai Prakash Maurya
12 years ago.

Hi,

We have to set the focus for Y Axis in Day Scheduler according to date and resouce.

Second issue is how we can set the margin of Event Movement and Drag event. Example: when we try to drag any job to increase it for left hand side need to move the cursor 50% to make it while in right it done with pixel movement.

Answer posted by Dan Letecky [DayPilot]
12 years ago.

Focus

1. You can set the vertical scroll position using ScrollY property on the server side (don't forget to call Update() then). However, this works with pixels so it might be difficult to calculate if you are showing concurrent events in some of the rows (the row height doesn't correspond to event height).

2. You can highlight the row header by using custom background color in BeforeResHeaderRender.

Example:

    protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeHeaderRenderEventArgs e)
    {
        if (!e.IsCorner && e.Value == "ROWID1")
        {
            e.BackgroundColor = "red";
        }
    }
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.