ElioStruyf GitHub Star | M365 Development, Developer Technologies MVP | Google Developer Expert Azure | Microsoft 365 | Visual Studio Code | End-to-End Testing

Along with acting as VP of BIWUG (Belgian Information Worker User Group), Elio is an independent contractor for his own consulting company, Struyf Consulting.

Showing Alternating Rows in the Content Search WebPart (Display Template)

Showing alternating rows can be done in various ways, you can do it via jQuery or even with CSS. Another way is to add an alternating class to the item via the Item Display Control. I’ll explain the last method in this post. Note: here are the references to the jQuery and CSS methods: jQuery Odd Selector - CSS Even and Odd

Read more

How to Define a Custom Group Display Template (GroupTemplateId) for the Search Results WebPart via JavaScript

For my next blog post I needed to investigate how to use a custom Group Display Template for the Search Results WebPart. Unfortunately you can only set the Control Display Template and the Item Display Template in the Search Results WebPart properties. Show image Display Template Settings Search Results WebPart If you want to specify the group display template, you have two options:

Read more

Ajax Refresh Item Row(s) in a SharePoint 2013 View

When examining the JS Link problem that was described in my previous blog post, I found a nifty piece of code. The code allows you to do an Ajax refresh for a single item row or for the item rows in the current view. This piece of code comes in handy when you have a custom actions that does an item update and only want to update the current item or the list of items.

Read more
Back to top