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

Drag and Drop from a TextBox or Label to the Scheduler grid

Asked by Cedric
2 months ago.

Hello,

I'm trying to drag a text from a Textbox or Label into the scheduler grid. i have followed and implemented this https://aspnet.daypilot.org/demo/Scheduler/ExternalDragDrop.aspx which works fine, however i am trying to applies the same function on <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> .

Can you please help on with this please

Thank you in advance

Answer posted by Dan Letecky [DayPilot]
2 months ago.

It's possible to activate TextBox and Label controls using DayPilot.Scheduler.makeDraggable().

You just need to target the corresponding DOM elements using JavaScript. For example, the <asp:TextBox> is translated to <input type="text">. I recommend checking the HTML output of the page or using browser developer tools.

Comment posted by Cedric
2 months ago.

thank you, i have already achieved it by putting the asp textbox between the html list tag, but your suggestion is efficient and more reliable and also work great so ill be implementing that way

New Reply
This reply is
Your name (optional):