Home Unanswered Active Tags New Question

External Drag&Drop problem

Hi,

Somtimes I get the following javascripterror message:

'offsetWidth' is null or not an object

It occurs at this line:

$g.style.width=($r.offsetWidth-4)+'px'

Is this a bug in DayPilot or is it my external html that is not correct? My code looks like this:

<tr onmousedown='return DayPilotCalendar.dragStart(this, 60*30, "<%# Eval("Id")%>", this.innerHTML);'
style="cursor: move;" unselectable='on'>

Also, I wonder if there is a way to call dragStart without deleting the draged item? When I try to send null instead of "this" parts of the page/html gets selected when I drag the item to the calendar.

Thanks

Andreas

Asked by Andreas 3 years ago.
Replies

This error is now fixed (build 2433). See also:
http://www.daypilot.org/daypilot-pro-for-asp-net-webforms-6-8.html

Answer posted by Dan Letecky [DayPilot] 21 days ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java