Documentation Request

2 posts, 0 answers
  1. Steve
    Steve avatar
    1871 posts
    Member since:
    Dec 2008

    Posted 28 Sep 2011 Link to this post

    Can someone whip up a block confirm sample for drag\drop please?

    Like is there no way for you to elegantly do it like the RadButtons implimentation?

    function confirmOnDragItem_Dropping(sender, args) {
                    var callBackFunction = Function.createDelegate(sender, function (shouldSubmit) {
                        if (shouldSubmit) {
                            //Allow it to happen
                    var text = "Are you sure you wish to move this item?";
                    radconfirm(text, callBackFunction, 300, 100, null, "RadConfirm");

    Does it need the bloated block confirm instead?...I mean I know it probably does, but can you make it easier like the above scenario (in the RadButtons case you call a click method if shouldSubmit.

  2. Daniel
    Daniel avatar
    4949 posts

    Posted 03 Oct 2011 Link to this post

    Hello Steve,

    Thank you for your suggestion, we appreciate your feedback. At this point we prefer not to add more code to this demo. The reason is that we already received a complaint about the amount of code used to demonstrate the drag and drop functionality.
    The truth is, if one remove the 'drop clue' / restrictions code, the resulting demo will be fairly simple and short.
    Nevertheless, I believe it would be valuable if we have such example in the code-library section. We encourage that you share your own version of this (or any other) demo with our community (by posting a modified project in the RadTreeList section in our code-libraries).

    Best regards,
    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