Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Help with Data View web part and grouping.

  Asked By: Larissa Wilkins         Date: Nov 29, 2007      Category: Sharepoint      Views: 737
 

Is there any way to make the data view web part remember which groups
were expanded or collapsed after a post back?

I want the user to be able to expand a group in the data view and click
on one of the rows to see more detailed information. I'm using a
second data view web part to display the details and connecting the 2
data view web parts together.

The problem I'm having, is when the user click one of the rows, the
data view connection causes a post back and the groups all collapse
again.

Tagged:                

 

2 Answers Found

 
Answer #1       Answered By: Osvaldo Winters          Answered On: Nov 29, 2007       

The DVWP can do anything that XSL can do, so while it is probably
possible, it is probably more work than it is worth. You are likely
better off creating a custom Web Part.

 
Answer #2       Answered By: Kylie Gill          Answered On: Nov 29, 2007       

I would add that it can render HTML + JavaScript, so you would have to write
JavaScript that keeps track of the open/close states (probably in a cookie)
and upon postback and rerender, have JavaScript that sets the open and close
states to what they were before.

 
Didn't find what you were looking for? Find more on Help with Data View web part and grouping. Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].