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

Drag cue problem using latest version

24 Answers 148 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 21 Feb 2012, 05:01 PM
Hi,

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

Sort by
0
Christian Burkhardt
Top achievements
Rank 1
answered on 22 Feb 2012, 10:24 AM
I just noticed that this isn't a ScheduleView problem. The same behavior appears when I do a drag from a RadGridView. So maybe I'm doing something wrong in regards to drag&drop. Are there any changes I should know of?

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.
0
Miroslav Nedyalkov
Telerik team
answered on 23 Feb 2012, 01:47 PM
Hello Everybody,

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
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ken
Top achievements
Rank 1
answered on 23 Feb 2012, 05:13 PM
Hi Miroslav,

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
0
Boyan
Telerik team
answered on 28 Feb 2012, 04:22 PM
Hi 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
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ken
Top achievements
Rank 1
answered on 28 Feb 2012, 05:36 PM
Hi Boyan,

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 
0
Boyan
Telerik team
answered on 29 Feb 2012, 10:41 AM
Hello,

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
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ken
Top achievements
Rank 1
answered on 29 Feb 2012, 11:28 AM
Hi Boyan,

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!
0
Boyan
Telerik team
answered on 05 Mar 2012, 10:50 AM
Hello Adrian,

I will write you a short message when the fix is available. Thank you for your patience.

All the best,
Boyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Boyan
Telerik team
answered on 06 Mar 2012, 05:34 PM
Hello,

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
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Ken
Top achievements
Rank 1
answered on 03 Apr 2012, 04:30 PM
Hi Boyan,

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
0
Ken
Top achievements
Rank 1
answered on 03 Apr 2012, 05:56 PM
Also, when dragging, a second window appears in the windows taskbar. This then dissapears when dropping.
0
Jean Ressouche
Top achievements
Rank 1
answered on 05 Apr 2012, 11:38 AM
Same issue, i am evaluating the possibility to upgrade from my app from SL4/RadScheduler to SL5/RadSchedulView, this case is blocking.
0
Boyan
Telerik team
answered on 06 Apr 2012, 01:54 PM
Hi,

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 >>

0
Ken
Top achievements
Rank 1
answered on 15 Jun 2012, 12:17 PM
Still not fixed in Q2 :(
0
Boyan
Telerik team
answered on 20 Jun 2012, 12:16 PM
Hello Adrian,

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 >>

0
Jean Ressouche
Top achievements
Rank 1
answered on 20 Jun 2012, 01:47 PM
Bug fix should have higher priority than new controls...

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
"
0
Boyan
Telerik team
answered on 25 Jun 2012, 02:10 PM
Hello Jean,

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 >>

0
Ken
Top achievements
Rank 1
answered on 19 Jul 2012, 11:59 AM
Hi Boyan,

Any news on this since last month?

Thanks,
Adrian
0
Boyan
Telerik team
answered on 24 Jul 2012, 02:50 PM
Hi 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.

0
Ken
Top achievements
Rank 1
answered on 25 Jul 2012, 07:36 AM
Hi Boyan,

Thanks a lot for the answer. Looking forward to SP1.

All the best,
Adrian
0
Ken
Top achievements
Rank 1
answered on 31 Jul 2012, 08:42 AM
Hi Boyan,

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!
0
Boyan
Telerik team
answered on 03 Aug 2012, 07:55 AM
Hi Adrian,

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.

0
Ken
Top achievements
Rank 1
answered on 08 Aug 2012, 07:43 AM
Hi Boyan,

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
0
Boyan
Telerik team
answered on 09 Aug 2012, 02:18 PM
Hi 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.

Tags
ScheduleView
Asked by
Ken
Top achievements
Rank 1
Answers by
Christian Burkhardt
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Ken
Top achievements
Rank 1
Boyan
Telerik team
Jean Ressouche
Top achievements
Rank 1
Share this question
or