Copy components bug

Hi!

I have noticed a bug recently using the Radzen IDE. Let me explain.

When you copy X components from one place to another the components are pasted in reverse order.

If I select these 5 components (selected the rows) from Address line 1 down to Country and copy them and then pasted them somewhere else they are pasted in reverse order.

image
image

Is this how its suppose to be or is it just a bug?

Just to add some more information to this bug. If i select the components from bottom to top they are then pasted in the reverse order, so from top to bottom :slight_smile: So it goes both ways

I think that's how it's supposed to be. The designer doesn't understand top and bottom, so it just adds the components in a LIFO data structure. Your situation is very specific, but it can get a lot more complex than what you're trying to achieve.

1 Like

I have just fixed the order of item selection. However I am not 100% sure what should happen if components are selected in the opposite order. Should they be pasted in the "right" order still?

1 Like

They should be pasted in the order they are selected.
So if I select 1 -> 2 -> 3 -> 4 they are pasted 1 -> 2 -> 3 -> 4.
If i select them 1 -> 4 -> 3 -> 2 they are pasted 1 -> 4 -> 3 -> 2.

OK. That's how it would work after the fix.

1 Like