Abnormal Listbox drop row indicator

6 posts, 1 answers
  1. CS
    CS avatar
    10 posts
    Member since:
    Nov 2016

    Posted 11 Jun Link to this post

    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
  2. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    405 posts

    Posted 14 Jun Link to this post

    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.
  3. CS
    CS avatar
    10 posts
    Member since:
    Nov 2016

    Posted 17 Jun in reply to Vladimir Stoyanov Link to this post

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

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

  4. Answer
    Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    405 posts

    Posted 19 Jun Link to this post

    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.
  5. CS
    CS avatar
    10 posts
    Member since:
    Nov 2016

    Posted 20 Jun in reply to Vladimir Stoyanov Link to this post

    Hi, Any idea what causes the visual offset?
  6. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    405 posts

    Posted 25 Jun Link to this post

    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.
Back to Top