Query Drop Event?

3 posts, 1 answers
  1. Ivan Zlatanov
    Ivan Zlatanov avatar
    20 posts
    Member since:
    Jul 2009

    Posted 15 May 2012 Link to this post

    Hi,

    Is it possible to subscribe in javascript somewhere where we can do query drop? For example, if I enable drag and drop functionallity I would also like to be able to do verification of whether a node can be dropped and show this to the user. This is common functionallity in any drag and drop scenario.

    I see that you don't have any client side APIs exposed yet, but I was wondering if there is a workaround.

    Regards,
    Ivan.
  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 18 May 2012 Link to this post

    Hello Ivan,

     
    That is a great question thank you for asking it. Such functionality is not implemented so far in RadOrgChart but we will investigate it further more and will provide some more information about it in this thread as soon as we are ready with our research.

    Kind regards,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 28 May 2012 Link to this post

    Hello Ivan,

     
    We have inspected the issue with the "query drop" and here is the javascript code that should help you implement similar scenario:

    Telerik.Web.UI.RadOrgChart.prototype.postback = function (postBackArgs) {
             if (postBackArgs.command == Telerik.Web.UI.OrgChartPostBackCommand.NodeDrop || postBackArgs.command == Telerik.Web.UI.OrgChartPostBackCommand.GroupItemDrop) {
                 if (confirm("Do you want to drop")) {
                     var serializedArguments = Sys.Serialization.JavaScriptSerializer.serialize(postBackArgs);
                     eval(this._postBackReference.replace("arguments", serializedArguments));
                 }
             }
             else {
                 var serializedArguments = Sys.Serialization.JavaScriptSerializer.serialize(postBackArgs);
                 eval(this._postBackReference.replace("arguments", serializedArguments));
             }
         }

    Hope this will be helpful.

    Kind regards,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top