SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My Custom list have four columns(Doc ID, Created by, Assigned To, Assigned date). I want to filter the data in Data list view.

In my page there are 4 text boxes and a Button is there for the user input (Doc ID, Created by, Assigned To, Assigned date )

When the user enter his input in text boxes, and click the save button how do i change the filter query at runtime.

share|improve this question

You can use XmlDefinition property of the XsltListViewWebPart. Here you can find good example how to do it

share|improve this answer

You can generate CAML query on page dynamically and then send in to List view as string parameter (in query string, or in hidden form field):

                <RowLimit Paged="TRUE">30</RowLimit>
                <Aggregations Value="Off"/>
                <Toolbar Type="Standard"/>
share|improve this answer

Your Answer


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.