My Custom list has 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 enters his input in text boxes and clicks the save button how do i change the filter query at runtime.

2 Answers 2


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


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"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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