I have a 5 tabpage tab control. I hide tabpages 3,4, and 5. When I show tabpages 3 and 5 and do not show tabpage 4 I have a gap in between. What's the command or procedure to move tabpage 5 to where tabpage 4 is and tabpage 4 to where tabpage 5 is?
Thanks
1 Answer, 1 is accepted
0
Miroslav
Telerik team
answered on 12 Jan 2010, 06:39 PM
Hello Jorge Gonzalez,
There is no real way to move items but you can simply remove and add an item like so:
var itemToMove = tabControl.Items[4];
tabControl.Items.RemoveAt(4);
tabControl.Items.Insert(2, itemToMove);
I can also suggest using filterign for hiding the items by assigning a predicate to the items' filter: