1

enter image description herePlease suggest how to sort tabs dynamically using index or number.

One idea is to use dynamic components and add child using logic in controller. But I dont want to go with this idea.

I added the image. For example : we have 3 tabs named 1 ,2 and 3 . When I click on reorder they should be reorder in position like 3,1,2 using custom logic.

4
  • What tabs do you mean? Jan 12, 2015 at 13:03
  • visualforce component apex:tab i mean Jan 12, 2015 at 13:05
  • 1
    Piyush, maybe this question will attract more answers if you elaborate more on what problem you're trying to solve ? Jan 12, 2015 at 13:45
  • @SamuelDeRycke I added a image. Please check. Jan 12, 2015 at 14:05

1 Answer 1

0

I think your answer is described in http://www.salesforce.com/docs/developer/pages/Content/pages_dynamic_vf_components_implementation.htm, in the section on childnodes. With childnodes, you can dynamically add tabs to your tab panel.

Admittedly, it will be a lot of code--much more code than say, generating the page markup and returning it, but with the childnodes will retain ultimate flexibility for reordering your tabs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .