Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

2 Answers 2

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):

             <View>
                <Query>
                    {CAMLQueryString}
                </Query>
                <ViewFields>
                 ...
                </ViewFields>
                <RowLimit Paged="TRUE">30</RowLimit>
                <Aggregations Value="Off"/>
                <Toolbar Type="Standard"/>
            </View>
share|improve this answer

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.