Drag to Rad Scheduler

4 posts, 1 answers
  1. Nate
    Nate avatar
    26 posts
    Member since:
    Dec 2008

    Posted 16 Sep 2009 Link to this post

    Hi I am trying to use the drag drop functionality of the tree.
    Basically I want to drag a node onto the rad scheduler.
     However the node drop event is not firing...this event does fire though when I drag on to other elements like textboxes.
    What do I need to do to get this event to fire when dragging onto the rad scheduler
  2. Nate
    Nate avatar
    26 posts
    Member since:
    Dec 2008

    Posted 16 Sep 2009 Link to this post

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="JUNK.aspx.vb" Inherits="JUNK" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
               <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=db01;Initial Catalog=ContractManager;Integrated Security=True"
            ProviderName="System.Data.SqlClient" SelectCommand="">
        </asp:SqlDataSource>
               <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
               </telerik:RadScriptManager>
            <telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="True">
                <Nodes>
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode1">
                    </telerik:RadTreeNode>
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode2">
                    </telerik:RadTreeNode>
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode3">
                        <Nodes>
                            <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">
                            </telerik:RadTreeNode>
                            <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 2">
                            </telerik:RadTreeNode>
                        </Nodes>
                    </telerik:RadTreeNode>
                </Nodes>
             </telerik:RadTreeView>
            <table>
                <tr>
                    <td>
                    
               <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndDateTime"
                DataKeyField="pkActivityID" DataRecurrenceField="pkActivityID" DataRecurrenceParentKeyField="pkActivityID"
                DataSourceID="SqlDataSource1" DataStartField="StartDateTime" DataSubjectField="fkSubmissionID"
                HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1">
                <Localization AdvancedAllDayEvent="All day"></Localization>
                <AdvancedForm DateFormat="M/d/yyyy" TimeFormat="h:mm tt"></AdvancedForm>
            </telerik:RadScheduler>
                    </td>
                </tr>
            </table>
           
        </div>
     
        </form>
    </body>
    </html>

    Here is some sample code
  3. Answer
    Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 17 Sep 2009 Link to this post

    You could take a look at this sample that a Telerik member posted. It's a year old but it should give you some reference.
  4. Nate
    Nate avatar
    26 posts
    Member since:
    Dec 2008

    Posted 17 Sep 2009 Link to this post

    Awesome worked perfectly!!!
    Thanks so much...never would have guessed that's how it is done.
Back to Top