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

Abnormal Listbox drop row indicator

5 Answers 111 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
CS
Top achievements
Rank 1
CS asked on 12 Jun 2019, 03:36 AM
When drop the item into Expander-listbox, the indicator will show at the first row, however the item is insert into last row. Please have a look at the attached screenshot

5 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 14 Jun 2019, 11:54 AM
Hello,

Thank you for the provided gif. 

May I ask you to share some sample xaml of how the RadListBoxes are defined? This will hopefully allow me to reproduce the scenario on my end and investigate it.

Thank you in advance for any help you can provide.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
CS
Top achievements
Rank 1
answered on 17 Jun 2019, 09:14 AM

Hi, Sorry for late reply. Please download with the project solution folder

https://drive.google.com/file/d/1T9F-cFwaTzOLcTZbVPmj9ARcnDzfuVvj/view?usp=sharing

0
Accepted
Vladimir Stoyanov
Telerik team
answered on 19 Jun 2019, 01:43 PM
Hello,

Thank you for the provided sample project. 

I was able to reproduce the observed on your end behavior and I investigated it. Here are my findings:

Basically, the reason for it is the complexity of the nested RadListBox in a RadListBoxItem. In such a case, when dragging an item over the target RadListBox, sometimes the mouse is over a RadListBoxItem from the parent listbox and sometimes the mouse is over a RadListBoxItem from the child listbox. 

For the custom drop visual indicator to be placed correctly in such a custom scenario you can create a class inheriting LinearDropVisualProvider and override its GetLocation method. Then you can check which container is received in that method and change the drop position accordingly. I am attaching the sample project modified to demonstrate what I have in mind. Note, that I have implemented the custom LinearDropVisualProvider for the top RadListBox with RadExpander, however you can use a similar approach for the other listbox.

I hope you find this helpful.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
CS
Top achievements
Rank 1
answered on 21 Jun 2019, 01:46 AM
Hi, Any idea what causes the visual offset?
0
Vladimir Stoyanov
Telerik team
answered on 25 Jun 2019, 11:50 AM
Hello,

Thank you for the attached gif file. 

I was not able to reproduce this in the modified sample project from my last reply. Can you check whether the setup on your end differs from the one in the sample project? 

If possible, I would ask you to modify the provided project in order to demonstrate the observed behavior and send it back. This way I will be able to investigate it and further assist you.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ListBox
Asked by
CS
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
CS
Top achievements
Rank 1
Share this question
or