The solution suggested above would allow the users to resize the event using the dotted part, not using the solid part.
So I would recommend using one of the solutions suggested in the follow-up question here:
http://forums.daypilot.org/Topic.aspx/2854/expended-end-date
1. Display the solid and dotted part as separate events.
2. Use event versions to display the expected duration above the event.
#1 would match the required UI exactly but it's more work (you need to split the events to two parts each and handle them differently)
#2 is very easy to implement because it was created exactly for this purpose (show the original/planned state)
You can see an online demo here:
http://javascript.daypilot.org/sandbox/scheduler/eventversions.html
The striped box above the event is the "version". Sample code:
var e = new DayPilot.Event({
start: new DayPilot.Date("2015-03-25T00:00:00").addDays(start),
end: new DayPilot.Date("2015-03-25T12:00:00").addDays(start).addDays(durationDays).addHours(duration),
id: DayPilot.guid(),
resource: String.fromCharCode(65+i),
text: "Event " + (i + 1),
versions: [
{
start: new DayPilot.Date("2015-03-25T00:00:00").addDays(start),
end: new DayPilot.Date("2015-03-25T12:00:00").addDays(start).addDays(durationDays).addHours(duration).addDays(1),
barHidden: true
}
]
});
dp.events.add(e);
Note the "versions" property.
The appearance of the version box can be customized using CSS.