Hello -
I have an issue where I have a ListBox with 4 items in it, ordered Item 1, Item 2, Item 3, Item 4. When I select Item 2 and drag to infront of Item 1, my code on the postback doesn't seem to register the reorder. Although the event is firing, the code is getting data that in the ItemCollection that resembles the original list.
So just for fun, I turned on the button and tried it. In this case, everything works.
So I trace through both approaches, and the Sender object I pass in is different in both cases. The Selected item is Item 2 in both cases, but the Item collection from drag and drop is (1, 2, 3, 4) and the item collection from button up is (2, 1, 3, 4). I have tried a variety of combinations and it always seems to follow the same way.
Even stranger, I do the same thing elsewhere on a different page, and it doesn't have this problem at all.
As far as I can tell, all the setting on the two controls are the same.
Is there any known issue that might be causing this? Is there anything you suggest we can try to do differently to sort it out?
Thanks-
P.J.
I have an issue where I have a ListBox with 4 items in it, ordered Item 1, Item 2, Item 3, Item 4. When I select Item 2 and drag to infront of Item 1, my code on the postback doesn't seem to register the reorder. Although the event is firing, the code is getting data that in the ItemCollection that resembles the original list.
So just for fun, I turned on the button and tried it. In this case, everything works.
So I trace through both approaches, and the Sender object I pass in is different in both cases. The Selected item is Item 2 in both cases, but the Item collection from drag and drop is (1, 2, 3, 4) and the item collection from button up is (2, 1, 3, 4). I have tried a variety of combinations and it always seems to follow the same way.
Even stranger, I do the same thing elsewhere on a different page, and it doesn't have this problem at all.
As far as I can tell, all the setting on the two controls are the same.
Is there any known issue that might be causing this? Is there anything you suggest we can try to do differently to sort it out?
Thanks-
P.J.