Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have 2 DVWPs and would like to use a tab or link to switch between them without postbacks. I was thinking of using jQuery. One DVWP would have around 100 rows the other 400 rows. Any suggestions would be great. Cheers

share|improve this question
    
whathaveyoutried.com? –  Steve B Sep 10 '12 at 8:26
    
Thanks for the URL Steve. –  naijacoder Sep 11 '12 at 0:19
add comment

1 Answer 1

up vote 1 down vote accepted

Ready made solution if you don't want to program it yourself: http://jquerytabswebpart.codeplex.com/

If you want to implement it yourself, it is also very straightforward. Have two web part zones in the page, one DWP in each. In Page layout, add DIV's around each web part zone. Then add default CSS style that makes the second DIV initially hidden. Then add two buttons on top that toggle the visibility of the DIVs.

Of course, if you don't want the second DWP load before you click the tab, you need more sophisticated implementation, but with 100 and 400 items, this quick solution is probably quite OK.

share|improve this answer
    
Thanks Jussi for the link to codeplex.I was basically looking for something i could just use before that already existed.Thanks alot –  naijacoder Sep 11 '12 at 0:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.