<< SharePoint 2019 'Modern' Web PartsTable of contents 
List Search Web Part

The List Search Web Part reads the entries from a Sharepoint List or Library (located anywhere in the site collection) and displays the selected user fields in a grid with an optional interactive search filter.
Sharepoint 2019 Modern List Search Web Part

Web Part Configuration:


Title:
enter the optional web part title

Web Part:
AEListSearch

Configuration:
enter the below configuration options:

site=SiteUrl (optionally enter a site URL)
list=TeamCalendar (enter the name of the Sharepoint list)
view=SomeView (optionally enter the name of the list view)
template=enter the column names to be displayed
detailview=Title (defines the column to be linked)
searchbox=Title;Price (defines the optional search filters)
sortby=Title (optionally defines the sort order)
groupby=Category (optionally defines the group column)
azcolumn=ColumnName (defines the AZ Index column)
pagesize=10 (enable paging and set the page size)
showall=0 (do not display the list items unless a search filter has been applied)
style=Cards (optionally select one of the available grid styles)
addnewitem=1 (display the "Add new item" button)

Web Part Configuration



Please enter a comment below if you want to give feedback or have suggestions for improvements:

User Comments Post a Comment 

Kim  
7/2/2020 14:37 
Is this webpart available?
Mick  
7/14/2020 10:10 
Does the search support partial entry... i.e. would title = "Vacuum
" find Electrolux Vacuum Cleaner + all other Vacuum Cleaners?
Juerg  
2/11/2021 15:05 
Mick,
by default, the search filter does find all words that either contain, start or end with the search term (eg. it behaves as a wildcard serach).
Rod  
8/25/2021 17:25 
Can this be used for a corporate directory list uploaded from an excel sheet...looking for a solution to display alphabet at top of page, when a letter is selected, display all entries sorted by LastName that start with selected letter...
Juerg  
8/25/2021 17:42 
Rod,
yes, see the below web part configuration:

list=Name of your Employee Sharepoint list
template=LastName;other fields as needed
sortby=LastName
azcolumn=LastName

Andreas  
2/26/2022 07:05 
Is it possible to extend the search so that the content of a document is also searched for the search term? Thank you!
Juerg  
2/28/2022 10:50 
Andreas,
the search filters are restricted to the document librariy metadata columns, eg. document full-text search is not supported.
Lukas  
3/4/2022 11:40 
Is there an option to adjust Header Row CSS as it is poosible in WebPart for classic pages? Thanks
Juerg  
4/19/2022 13:20 
Lukas,
we have now added the headercss setting for the SPFx based version of the List Search web part as for example:

headercss=background:silver;color:black

Please re-download the List Search web part and the update the farm solution.
Ami  
4/28/2022 01:25 
Is there an option to add alternating row colors?
Ami  
4/28/2022 01:30 
...or add a background color?
Ami  
4/28/2022 02:56 
I keep getting this error:
List error for reason=1
The system cannot find the file specified. (Exception from HRESULT: 0x80070002). It seems like the "detailview" link is not working/linking to the list. I am linking to a tasks list...not sure it that is the reason for the error.
Juerg  
5/12/2022 12:45 
Ami,
we have now added the new "alternaterowcolor" setting to specify either an alternate row color or both an alternate row color and the row color (by supplying 2 color values, separated by a semicolon) as eg.

alternaterowcolor=#d0d0d0

or

alternaterowcolor=#d0d0d0;#ff0000

Please re-download the List Search web part and then update the farm solution.
This should also fix your issue with the "List error" message when opening the item detail view.