• .NET

    Drag from external programs into you WPF applications using RadDragAndDropManager

    Since Q3 2010 we have introduced new drag mode, enabling native drag from and to your WPF applications. In this post I will show how to successfully perform drag drop operations from external program into your application through the RadDragAndDropManager API. This can be achieved in several easy steps:   1. Set RadDragAndDropManager.EnableNativeDrag=”true”. This will enable native operations (if your application runs in full trust). The easiest way to do this is set it in StartUp event.           private void Application_Startup(object sender, StartupEventArgs e)         {             RadDragAndDropManager.EnableNativeDrag = true;         }   2. Set the RadDragAndDropManager properties to enable the drop operation:   telerik:RadDragAndDropManager.AllowDrop="True" telerik:RadDragAndDropManager.DropQuery="FileListGrid_DropQuery" telerik:RadDragAndDropManager.DropInfo="FileListGrid_DropInfo"   and add the corresponding...
    December 08, 2010
  • .NET

    Enable RadGridView’s rows reorder functionality using Behaviors

    Using RadControls can boost the development process, using bunch of built-in features. However, sometimes we encountered scenarios where we need something very specific. In addition, we do want to make our custom logic encapsulated and easy reusable.  So,when this is the case,using behaviors is our best choice. In this blog I will show small example how to use the behavior power to enable row reorder functionality.     In order to enable drag and drop functionality, it simply uses our RadDragAndDropManager, giving us simple solution for the drag/drop functionality. So in order to use it and customize it we can even go the...
  • .NET

    Command Row for RadGridView with CRUD operations

    In my first blog post I will GridView extension that many people requested similar to ASP.NET UI experience – executing CRUD operations using buttons to execute. Bellow I will show one option to achieve this easily using the implementation of the Command pattern and attached behaviors approach available in Silverlight and WPF. Short overview of the command pattern Command pattern encapsulates a request as an object and gives it a known public interface. Using this pattern ensures that every object receives its own commands and provides a decoupling between sender and receiver. A sender is an object that invokes an operation (usually...