Telerik.windows.controls.drag drop silverlight




















Hello Samy, The drag-drop behaviors are still experimental, hence they are not completely open. We are aiming to provide official state for the behaviors extensible API, support for more Telerik controls, better documentation etc.

Best wishes, Valeri Hristov the Telerik team. So what is the current official way to build applications against drag and drop capabilities between these controls? I'm submitting a ticket in case you can take a look at it to get a more precise answer since i can't figure what is the way to handle this problem. I would strongly recommend waiting for our solution for drag-drop between gridview and scheduleview, which will happen in a week.

Preparing a sample that demonstrates how to create the functionality on your own is equal to the actual implementation, hence either way you will have to wait one week. Greetings, Valeri Hristov the Telerik team. Pete Top achievements Rank 1. I have changed my application to use the new behavior.

My appointment objects are derived from Appointment i. ArgumentNullException: Value cannot be null. Parameter name: source at System. MoveNext at System. InvokeHandler Delegate handler, Object target at Telerik. I had to update the Telerik controls to fix another bug and now my Scheduler doesn't work! UPDATE: Upgrading the Telerik Controls seems to have broken all of the gridviews in our project - the databindings are not working and all the grids are now blank.

Yana Telerik team. Hello, I've just answered to the support ticket regarding this issue - we've tried to reproduce it but without much success. Can you send us more details which will help us observe the problem? Thanks Greetings, Yana the Telerik team. It is of interest to us as we would like to implement this in our solution for a customer. There are Internal builds where you can get the latest dev libraries, but i'm not sure it's not linked to a user. Do you see anything when you click the link?

If not, ask Valeri, he helped me out tremendously. I can download the latest internal build Thanks Ronald. Hello Ronald, The drag-drop behavior is still experimental, hence it is not mentioned in our online documentation. When it is ready, we will add several articles. In the meantime, you could read the MS Word document in the attached to my first post ZIP file that contains information how to use the behavior. Hi Valeri, thanks for your feedback.

I have a sample application that demonstrates how to create GridView drag-drop behavior, please find it attached. You need to use the post-SP1 internal builds in order to run it.

The method is called multiple times during the operation. On each call you can check if a requirement is fulfilled in order to prevent or allow the completion of the drop. For example, you can easily prevent copying Appointments when dragging them with the Control Key pressed by returning false if the key is pressed:. The method is called at the moment when the operation is starting.

For example, if you need to prevent dragging of more than two Appointments, you can override the method the following way:. For example, if you want to add a Category to the just dropped Appointment, you can do it as shown below:. CanResize DragDropState state - Gets the value specifying whether the resize operation can be finished or not. The method is called multiple times during the Resize operation and you can easily stop the operation by returning false.

The following example demonstrates how to stop the resizing when the duration becomes more than two hours and less than half an hour. For example, if you need to prevent the resizing of an Appointment that is marked with the Busy TimeMarker, you will need to do it the following way:. Resize DragDropState state - The method is called right after the resize operation is finished. You can find the initial Appointment in the Appointment property of the DragDropState and the new information in the DestinationSlot property.

So, for example, you can easily modify the Appointment subject after resizing in order to include the new duration as shown below:. By default, the ConvertDraggedData method will be called constantly. This behavior can be modified through the CacheConvertedDragData property.

ConvertDraggedData Object data - This method is fired when you drag appointments from a different source another control or application and is used to convert the data to an appointment. For example, if you are dragging from a ListBox to ScheduleView and you have objects of type Customer as an ItemsSource of the ListBox, you can convert the dragged Customer object to an Appointment the following way:. This method could be used to filter the selected appointments.

This method allows adding or removing Appointments to the selection depending on a specific condition. Those functionalities, however, do not guarantee that the software created is well structured, easily extensible, and unit testable.

MVVM resolves those issues. Touch Support The built-in touch support and the Windows8Touch theme make your Telerik UI for Silverlight powered applications run smoothly on a touch device. Browse the touch version of the demos. Export Support Export the data that different controls display with a functionality that enables your users to view and manipulate their data even after an application is closed. Telerik UI for Silverlight provides you out-of-the-box export functionalities and options.

Most of the data-driven controls allow you to export data to a variety of formats. The suite also provides a DragDropManager which easily integrates within your solution to implement any drag and drop scenario.

More about DevCraft. Support and Learning. Learn more. Industry-Leading Support. Expert and Timely Response The same developers who build Progress Telerik UI for Silverlight will answer any questions you might have, even during your trial, to make sure your project always gets delivered on time.

Contact Progress support. Have a Suggestion? Visit the Feedback Portal.



0コメント

  • 1000 / 1000