0

I have some page with multiple views. I want to write a custom filter for default active view.

How can I get list or view properties such as (View or list )name using SharePoint CSOM (or other approaches)when Added Web part to the page?

0

You can add the Xsltlistview web part to the page using JSOM/CSOM, and then define the view and make the changes to it (such as set query for the view).

Demo: Add an XsltListViewWebPart With a Custom View Using JSOM.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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