This is a migrated thread and some comments may be shown as answers.

Documentation Request

1 Answer 52 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 28 Sep 2011, 05:28 PM
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");
                args.set_cancel(true);
            }

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.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 03 Oct 2011, 11:19 AM
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,
Daniel
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
Tags
TreeList
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Daniel
Telerik team
Share this question
or