We have a problem with the drag-and-drop feature of the RadComboBox:
The bug occurs when we have two ComboBoxes and in the OnChange event we sort the items of the first ComboBox. When we move now one item (for example the third) to the other ComboBox with drag-and-drop and then back to its initial position, the order of the items in the left ComboBox is wrong.
We currently us the version 2015.2.826.35 of Telerik.
Please see the attached files. Thank you very much!
5 Answers, 1 is accepted
Just to make sure that we are on the same page - do you experience the described issue with the RadCombox or with the RadListBox? In the attached images, I can only revise an implementation of RadListBoxes. If the problem is regarding the RadComboBox. please provide us with the implementation that you use. In addition, it would be much easier for us to test your implementation, if it is provided with a code-snippet, instead of an image, describing the code.
You're right, of course. The problem comes with the RadListBox, not the RadComboBox. Sorry for the confusion!
Here the code snippets.. I had problems with the Internet Explorer ;)
Indeed the custom sorting cannot be applied at this event handler, when the items are transferred using the drag&drop functionality. There is an internal logic applying the indexation of the items, which prevents the sorting from execution.
In order to achieve the desired functionality, I would suggest to you to apply the sorting at the Page_PreRender state of the page's Lifecycle:
Thank you very much for your solution.
It worked :)