Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Help with Data View web part and grouping.

  Asked By: Larissa    Date: Nov 29    Category: Sharepoint    Views: 2615

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



2 Answers Found

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

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

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.