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've created a custom provider web part that I would like use to pass multiple filter parameters to a list view web part. Is this possible?

If so, is there an example or tutorial out there that shows how to do this?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

I think you are using webpart connections. If so, You cannot do this.

A webpart can only be connected to another webpart through one connection type and Each connection can have only one connection type.

So, you cannot establish two connections between same instance of Provider and Consumer webpart. However, You can connect a provider web part with two instance of same consumer webpart (if the provider expose two connections points).

A web part provider can make multiple connection points available, while a web part consumer can consume multiple provider connection points. In that case, every connection point requires a unique ID on both the consumer side and the provider side by specifying the connection point ID in the [ConnectionProvider] attribute.

A good option is to use filter values from query string.

share|improve this answer
    
Thanks for the explanation. Another solution I came up with is to create a new consumer webpart that inherits the ListView Web Part class. I then pass in a CSV list of values that are then parsed and create a view on the fly. –  RWL01 Dec 28 '11 at 14:13

Maybe this link from stack overflow site can help you to create multiple filter webpart

OR

You can passing two or more filter parameter by using query string web part. This link will give you tutorial how to use query string webpart to filter list item. You can use custom control to add query string to your site url.

Hope it solve your problem.

share|improve this answer

You can add several list filters through sharepoint designer but you cant do this through the front end web page

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

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.