I've just upgraded my project to the latest version of the controls (q1 2012) and now the DragCue is somehow wrong for the scheduleview. Is there a known breaking change or something else I should do?
The problem appears when:
1. Dragging something onto the scheduleview (e.g. from a gridview)
2. Dragging an appointment that already exists in the scheduleview around.
3. Resizing an appointment.
Instead of the dragcue I get an empty white box. Sometimes the stuff that should normally be in the cue can barely be seen, translated inside the box.
Funny is that when doing any drag&drop and the app is running out-of-browser, I actually get a second instance of the app icon in the windows taskbar! This then dissapears on the drag&drop completion.
Thanks for any pointers!
24 Answers, 1 is accepted
Here is my code for doing drag&drop from a GridView:
private void OnGridViewDragInfo(object sender, DragDropEventArgs e)
{
if (e.Options.Status == DragStatus.DragComplete)
{
var gridViewRow = e.Options.Source as GridViewRow;
if (gridViewRow != null)
{
var dragDropPayload = (AppointmentDragDropPayload)e.Options.Payload;
var gridView = gridViewRow.GridViewDataControl;
var sourceCollection = (IList)gridView.ItemsSource;
sourceCollection.Remove(dragDropPayload.Appointment);
}
}
}
private void OnGridViewDragQuery(object sender, DragDropQueryEventArgs e)
{
var gridViewRow = e.Options.Source as GridViewRow;
if (gridViewRow != null && e.Options.Status == DragStatus.DragQuery)
{
var appointment = (CalendarAppointment)gridViewRow.DataContext;
var dragDropPayload = new AppointmentDragDropPayload(appointment);
e.Options.Payload = dragDropPayload;
var cue = new DragVisual();
//cue.Style = DragCueStyle;
//cue.ContentTemplate = this.DragCueTemplate;
cue.DraggedItemsSource = new List<AppointmentDragDropPayload> { dragDropPayload };
e.Options.DragCue = cue;
}
e.QueryResult = true;
}
As you can see, I commented out the style and template for the DragVisual as I thought maybe they are causing this...but looks like they're not, I still get the same behavior with them commented out.
I tried the scenario you described, but I couldn't reproduce the problem. Please find my test project attached and let me know if I'm missing something.
Greetings,Miroslav Nedyalkov
the Telerik team
I found the problem: it appears if you go to the "out of browser settings" and set "require elevated trust when running out of browser". If you set this also for your sample app and run it out of browser, the problem appears.
We are currently using this feature so unchecking it is not an option.
Please let me know if you have an idea why this triggers the problem.
Thanks,
Adrian
Thank you for the clarification, we managed to reproduce the bad behavior in OOB application. This seems to be a bug in our Drag and Drop functionality. I have logged the issue in our PITS where you can follow its progress.
Please, excuse us for the inconvenience. We have added points to your account for your report. Don't hesitate to contact us if you have other questions.
Greetings,
Boyan
the Telerik team
Tanks for your answer. I see that it's not scheduled in PITS. This means I can not rely on any release date right? This would be pretty bad for us, as we upgraded the application to SL5 and the latest version of Telerik controls and would now have to go back.
Is there any way to get this fixed as part of a nightly build or something?
Thanks,
Adrian
The bug is logged and is scheduled for Q1 SP1 which is due in the middle of March. It is possible that the fix will be available earlier in one of the internal builds, you can follow the tread to see when the fix is ready. Currently the item is listed as not scheduled, excuse us for this, it is due to a problem in our system and will be updated shortly.
Regards,
Boyan
the Telerik team
Thanks for the clarification. Looking forward to the fix. I am already subscribed to the thread so if you can write a short note here when it is fixed, it would be great.
Thanks!
I will write you a short message when the fix is available. Thank you for your patience.
All the best,
Boyan
the Telerik team
The issue is fixed, but it didn't make it for the internal build that we uploaded today. The fix will be available for the next internal build.
Regards,
Boyan
the Telerik team
I noticed this issue is marked as fixed in the sp1 release. However, I just tested it and, while it is better, it's not completely fixed: specifically, my problem is that now although the drag cue appears at the correct position and shows correct content inside, there is still a white border around it, which shouldn't be there.
Can you please confirm whether this bug still appears also on your side?
Or maybe some templates were changed and I need to update those also (seeing as I have customized them quite a bit)?
Thanks,
Adrian
The problem comes from the fact that the Visual Cue in OOB is rendered in completely different way than in Silverlight. We are using a Window for showing Visual Cue but in OOB this Window can not be set as transparent and hence the white border behind around the payload and the Window in the taskbar. There should be a way to fix this by modifying the Drag Cue style however the issue seems to be more complex than we thought. We will need some more time to investigate how we can fix this bad behavior or provide a workaround with a Drag Cue style or else.
We will investigate the issue further next week and I will follow up this thread and the one below with our findings and thank you for your patience.
All the best,
Boyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
This issue didn't make it for the Q2 as we didn't have the time to research it, as we already had some heavy tasks planned. We will do our best to research the issue for next week.
Kind regards,
Boyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
If this bug was not yest investigated, i don't understand the fact that the pits case was set as resolved.
"
Dragcue is showed as blank rectangle when in OOB application |
These issues have been addressed in RadControls for Silverlight 2012.2 607. Download this version |
I didn't mean that bugs are not important for us and we leave them in favor of new features. We just have some preliminary planning and sometimes it is not easy to fit in some new fixes.
We are constantly trying to improve our products and will try to provide solution for your problem till the end of the week.
As for the work item, it was marked as resolved as there are two different problems. In the beginning there was a problem in general with the DragDrop that resulted in incorrect content and position and this is the problem that we marked as fixed. The current issue with the white border is more of a template issue. We believe that due to some margins and borders it is not showing properly. We will try to provide a fix or a workaround with a custom template.
Kind regards,
Boyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Any news on this since last month?
Thanks,
Adrian
The issue should be fixed for both dragging and resizing now. The fix will be available in Q2 SP1 which will be released till the end of the week.
Please give it a try and let us know if you have further problems.
All the best,
Boyan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thanks a lot for the answer. Looking forward to SP1.
All the best,
Adrian
I just tried with q2 sp1 and I still have both problems:
- there is a white border around the drag cue
- a second window appears in the taskbar while dragging
Do I have to change something in some template somewhere maybe?
Thanks!
We are not able to reproduce the white border with the latest version. I have attached a sample video using the project attached in this thread. Could you please take a look at the video and let me know what I am doing wrong or send us a sample code where this problem can be seen.
As for the Window showing, this is not fixed. We are using a Window for showing Visual Cue but in OOB and we have no workaround for this yet. In order to fix this issue we must change the entire implementation of drag and drop in the control.
Greetings,
Boyan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thanks for the answer. Unfortunately I can't make a sample, as the code is part of a bigger project. Everything works fine in-browser, though.
Could you maybe tell me if you did any changes in any of the templates or just in the c# code? If it's just the code, it should normally work. If also some templates were affected, maybe I have to change something in my own, customized, templates as well.
Thanks,
Adrian
The changes are both in the code and in the template of the control. You can compare both templates, old and new one and see what are the differences. There are a lot of changes and as I don't have your template I can't tell you what exactly you have to change. If you are having problems with modifying the template, please let us know and we will try to help you with upgrading it.
All the best,
Boyan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.