SlideShare ist ein Scribd-Unternehmen logo
1 von 26
SharePoint Saturday Gulf 
#SPSGulf 
Client Side Rendering in SharePoint 2013 
(DeepDive) 
Muawiyah Shannak 
Our Sponsors:
Twitter: @MuShannak 
Blog: mushannak.blogspot.ae 
LinkedIn: linkedin.com/in/shannak 
Slideshare: slideshare.net/MuawiyahShannak 
Website: mushannak-public.sharepoint.com 
Muawiyah Shannak 
SharePoint Architect, MCC & UAE-SPUG 
Leaders
Agenda 
• Introduction 
• CSR Model 
• Advantages 
• Building CSR Template
OOTB List forms and views
Customize SP 2013 forms & views
What is Client-side rendering (CSR) 
Client-side rendering enables you to customize UI components by 
using JavaScript on the client as opposed to on the server.
Server Side Render 
Request 
HTML 
Content DB 
Server 
Processing 
Browser
Client Side Render (CSR) 
Request 
JSON 
Browser 
Content DB 
Server 
Processing 
JSON to HTML
CSR advantages over other options 
Single field, entire view or form 
Rendering is performed on the client 
side. 
Web developers will already be 
familiar with JavaScript 
Consistency with SharePoint OOTB 
views and forms
Build and Use CSR Template
Build CSR Template 
Field 
(internal 
name) 
Display 
mode 
Function return 
string (html) 
value
Where we can use CSR Templates 
Override fields render in 
display, edit and new 
forms. 
Display Templates 
• Fields 
• Items 
• Body 
• Group 
• View 
• Header 
• Footer
CSR & List Views
CSR Item Template
CSR & Forms
OnPreRender and OnPostRender 
: The JavaScript event handler for the event that 
occurs immediately before the field is rendered to its containing 
place. Useful usage scenario: request more dilated data 
: The JavaScript event handler for the event that 
occurs immediately after complete the field HTML render. Useful 
usage scenario: applying JQuery UI transformation
Link CSR files
Samples 
http://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a
Our Sponsors: 
SharePoint Saturday Gulf 
#SPSGulf 
Thank You!

Weitere ähnliche Inhalte

Was ist angesagt?

WSO2 Advantage Webinar - JSON Support in the WSO2 Platform
WSO2 Advantage Webinar -  JSON Support in the WSO2 PlatformWSO2 Advantage Webinar -  JSON Support in the WSO2 Platform
WSO2 Advantage Webinar - JSON Support in the WSO2 Platform
WSO2
 

Was ist angesagt? (16)

E Commerce Proposal
E Commerce ProposalE Commerce Proposal
E Commerce Proposal
 
WordPress Website Design Proposal Template PowerPoint Presentation Slides
WordPress Website Design Proposal Template PowerPoint Presentation SlidesWordPress Website Design Proposal Template PowerPoint Presentation Slides
WordPress Website Design Proposal Template PowerPoint Presentation Slides
 
Back to [Jaspersoft] Basics: Rest API 101
Back to [Jaspersoft] Basics: Rest API 101Back to [Jaspersoft] Basics: Rest API 101
Back to [Jaspersoft] Basics: Rest API 101
 
SharePoint Document Management
SharePoint Document ManagementSharePoint Document Management
SharePoint Document Management
 
Utilizing SharePoint for Project Management
Utilizing SharePoint for Project ManagementUtilizing SharePoint for Project Management
Utilizing SharePoint for Project Management
 
SharePoint as an Intranet Portal for Business
SharePoint as an Intranet Portal for BusinessSharePoint as an Intranet Portal for Business
SharePoint as an Intranet Portal for Business
 
BEM It! for Brandwatch
BEM It! for BrandwatchBEM It! for Brandwatch
BEM It! for Brandwatch
 
Web front end development introduction to html css and javascript
Web front end development introduction to html css and javascriptWeb front end development introduction to html css and javascript
Web front end development introduction to html css and javascript
 
Access Data from XPages with the Relational Controls
Access Data from XPages with the Relational ControlsAccess Data from XPages with the Relational Controls
Access Data from XPages with the Relational Controls
 
Wordpress Development Introduction
Wordpress Development IntroductionWordpress Development Introduction
Wordpress Development Introduction
 
Advantages of SharePoint Online
Advantages of SharePoint OnlineAdvantages of SharePoint Online
Advantages of SharePoint Online
 
WSO2 Advantage Webinar - JSON Support in the WSO2 Platform
WSO2 Advantage Webinar -  JSON Support in the WSO2 PlatformWSO2 Advantage Webinar -  JSON Support in the WSO2 Platform
WSO2 Advantage Webinar - JSON Support in the WSO2 Platform
 
Erlang supervisor explained
Erlang supervisor explainedErlang supervisor explained
Erlang supervisor explained
 
Milk Delivery App Development | App for Milk Delivery | Mtoag
Milk Delivery App Development | App for Milk Delivery | MtoagMilk Delivery App Development | App for Milk Delivery | Mtoag
Milk Delivery App Development | App for Milk Delivery | Mtoag
 
Présentation de alfresco - l'outil de GED open-source java
Présentation de alfresco - l'outil de GED open-source javaPrésentation de alfresco - l'outil de GED open-source java
Présentation de alfresco - l'outil de GED open-source java
 
SharePoint as a Document Management System (DMS)
SharePoint as a Document Management System (DMS)SharePoint as a Document Management System (DMS)
SharePoint as a Document Management System (DMS)
 

Andere mochten auch

How to Improve the SharePoint UI Using Bootstrap 3
How to Improve the SharePoint UI Using Bootstrap 3How to Improve the SharePoint UI Using Bootstrap 3
How to Improve the SharePoint UI Using Bootstrap 3
Ryan McIntyre
 
Integrating SharePoint with Exchange-2013
Integrating SharePoint with Exchange-2013Integrating SharePoint with Exchange-2013
Integrating SharePoint with Exchange-2013
Randy Williams
 

Andere mochten auch (20)

The A to Z of Building a Responsive SharePoint Site with Bootstrap
The A to Z of Building a Responsive SharePoint Site with BootstrapThe A to Z of Building a Responsive SharePoint Site with Bootstrap
The A to Z of Building a Responsive SharePoint Site with Bootstrap
 
2013 SPFest - Customizing Sites and Pages in SharePoint 2013
2013 SPFest - Customizing Sites and Pages in SharePoint 20132013 SPFest - Customizing Sites and Pages in SharePoint 2013
2013 SPFest - Customizing Sites and Pages in SharePoint 2013
 
How to Improve the SharePoint UI Using Bootstrap 3
How to Improve the SharePoint UI Using Bootstrap 3How to Improve the SharePoint UI Using Bootstrap 3
How to Improve the SharePoint UI Using Bootstrap 3
 
Enhance the Usability of Your SharePoint Site with JSLink #Collab365 #C365114...
Enhance the Usability of Your SharePoint Site with JSLink #Collab365 #C365114...Enhance the Usability of Your SharePoint Site with JSLink #Collab365 #C365114...
Enhance the Usability of Your SharePoint Site with JSLink #Collab365 #C365114...
 
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrienCustomizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
 
Enhance SharePoint 2013 with Responsive Web Design
Enhance SharePoint 2013 with Responsive Web DesignEnhance SharePoint 2013 with Responsive Web Design
Enhance SharePoint 2013 with Responsive Web Design
 
Build Killer Visuals with SharePoint 2013 Search & Display Templates
Build Killer Visuals with SharePoint 2013 Search & Display TemplatesBuild Killer Visuals with SharePoint 2013 Search & Display Templates
Build Killer Visuals with SharePoint 2013 Search & Display Templates
 
SharePoint 2013 Client Side Rendering
SharePoint 2013 Client Side RenderingSharePoint 2013 Client Side Rendering
SharePoint 2013 Client Side Rendering
 
SharePoint and the User Interface with JavaScript
SharePoint and the User Interface with JavaScriptSharePoint and the User Interface with JavaScript
SharePoint and the User Interface with JavaScript
 
Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)
Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)
Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)
 
Whats new in search in SharePoint 2013
Whats new in search in SharePoint 2013Whats new in search in SharePoint 2013
Whats new in search in SharePoint 2013
 
Trends in Designing Portals for #SharePoint 2013 #SPC14 #SPC2013
Trends in Designing Portals for #SharePoint 2013 #SPC14 #SPC2013Trends in Designing Portals for #SharePoint 2013 #SPC14 #SPC2013
Trends in Designing Portals for #SharePoint 2013 #SPC14 #SPC2013
 
Get started developing apps for SharePoint 2013
Get started developing apps for SharePoint 2013Get started developing apps for SharePoint 2013
Get started developing apps for SharePoint 2013
 
Developing Apps for SharePoint 2013
Developing Apps for SharePoint 2013Developing Apps for SharePoint 2013
Developing Apps for SharePoint 2013
 
Introduction to SharePoint 2013 Apps
Introduction to SharePoint 2013 AppsIntroduction to SharePoint 2013 Apps
Introduction to SharePoint 2013 Apps
 
Apps for SharePoint 2013
Apps for SharePoint 2013Apps for SharePoint 2013
Apps for SharePoint 2013
 
SPS Québec - Votre intranet "Client-Side" en SharePoint Online/O365 avec PnP,...
SPS Québec - Votre intranet "Client-Side" en SharePoint Online/O365 avec PnP,...SPS Québec - Votre intranet "Client-Side" en SharePoint Online/O365 avec PnP,...
SPS Québec - Votre intranet "Client-Side" en SharePoint Online/O365 avec PnP,...
 
Cross Site Publishing Solution for corporate news in SP 2013
Cross Site Publishing Solution for corporate news in SP 2013Cross Site Publishing Solution for corporate news in SP 2013
Cross Site Publishing Solution for corporate news in SP 2013
 
Integrating SharePoint with Exchange-2013
Integrating SharePoint with Exchange-2013Integrating SharePoint with Exchange-2013
Integrating SharePoint with Exchange-2013
 
Gouvernance des projets SharePoint 2013
Gouvernance des projets SharePoint 2013Gouvernance des projets SharePoint 2013
Gouvernance des projets SharePoint 2013
 

Ähnlich wie SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates

Ambikumar - Sharepoint Developer
Ambikumar - Sharepoint DeveloperAmbikumar - Sharepoint Developer
Ambikumar - Sharepoint Developer
Ambi kumar
 
Sumit_SharePoint
Sumit_SharePointSumit_SharePoint
Sumit_SharePoint
Sumit Y
 
SharePoint 2010 Application Development
SharePoint 2010 Application DevelopmentSharePoint 2010 Application Development
SharePoint 2010 Application Development
mattbremer
 
Nishant Rai_SE.DOC
Nishant Rai_SE.DOCNishant Rai_SE.DOC
Nishant Rai_SE.DOC
Nishant Rai
 
Srikanth Gattu-SharePoint Developer
Srikanth Gattu-SharePoint DeveloperSrikanth Gattu-SharePoint Developer
Srikanth Gattu-SharePoint Developer
srikanth gattu
 
Abhishek Resume
Abhishek ResumeAbhishek Resume
Abhishek Resume
Abhishek R
 

Ähnlich wie SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates (20)

Come riprogettare le attuali farm solution di share point con il nuovo modell...
Come riprogettare le attuali farm solution di share point con il nuovo modell...Come riprogettare le attuali farm solution di share point con il nuovo modell...
Come riprogettare le attuali farm solution di share point con il nuovo modell...
 
Intro to SharePoint for Developers
Intro to SharePoint for DevelopersIntro to SharePoint for Developers
Intro to SharePoint for Developers
 
Ambikumar - Sharepoint Developer
Ambikumar - Sharepoint DeveloperAmbikumar - Sharepoint Developer
Ambikumar - Sharepoint Developer
 
Technical Lead (Azure , SharePoint, ASP.Net ), 12+ years exp.
Technical Lead (Azure , SharePoint, ASP.Net ), 12+ years exp.Technical Lead (Azure , SharePoint, ASP.Net ), 12+ years exp.
Technical Lead (Azure , SharePoint, ASP.Net ), 12+ years exp.
 
Real World SharePoint Framework and Azure Services
Real World SharePoint Framework and Azure ServicesReal World SharePoint Framework and Azure Services
Real World SharePoint Framework and Azure Services
 
Vitali zaidman Do You Need Server Side Rendering? What Are The Alternatives?
Vitali zaidman Do You Need Server Side Rendering? What Are The Alternatives?Vitali zaidman Do You Need Server Side Rendering? What Are The Alternatives?
Vitali zaidman Do You Need Server Side Rendering? What Are The Alternatives?
 
Sumit_SharePoint
Sumit_SharePointSumit_SharePoint
Sumit_SharePoint
 
SharePoint 2010 Application Development
SharePoint 2010 Application DevelopmentSharePoint 2010 Application Development
SharePoint 2010 Application Development
 
Nishant Rai_SE.DOC
Nishant Rai_SE.DOCNishant Rai_SE.DOC
Nishant Rai_SE.DOC
 
Your Intranet, Your Way
Your Intranet, Your WayYour Intranet, Your Way
Your Intranet, Your Way
 
USGS-Projects
USGS-ProjectsUSGS-Projects
USGS-Projects
 
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...
Exam 70-488 Developing Microsoft SharePoint Server 2013 Core Solutions Learni...
 
Srikanth Gattu-SharePoint Developer
Srikanth Gattu-SharePoint DeveloperSrikanth Gattu-SharePoint Developer
Srikanth Gattu-SharePoint Developer
 
CV_Priyamadhab
CV_PriyamadhabCV_Priyamadhab
CV_Priyamadhab
 
SPFx- A modern development model for SharePoint
SPFx- A modern development model  for SharePointSPFx- A modern development model  for SharePoint
SPFx- A modern development model for SharePoint
 
Abhishek Resume
Abhishek ResumeAbhishek Resume
Abhishek Resume
 
SumerSingh_Ashawat
SumerSingh_AshawatSumerSingh_Ashawat
SumerSingh_Ashawat
 
From MVC to React
From MVC to ReactFrom MVC to React
From MVC to React
 
Easy tabs, Slideshows, Dashboards, etc - Client Side Scripts for SharePoint
Easy tabs, Slideshows, Dashboards, etc - Client Side Scripts for SharePointEasy tabs, Slideshows, Dashboards, etc - Client Side Scripts for SharePoint
Easy tabs, Slideshows, Dashboards, etc - Client Side Scripts for SharePoint
 
Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...
Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...
Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...
 

Kürzlich hochgeladen

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates

Hinweis der Redaktion

  1. My name is Muawiyah Shannak, I’m a SharePoint Architect and one of UAE-SPUG Leaders
  2. In these slides we provides information about new technology (CSR) to learn you how to customize the way users interact with list data, and how to develop solutions that change the way data is rendered.
  3. XSLT:Extensible Stylesheet Language TransformationsXSLT is hard to develop/debugXSLT isn't everyone's first choice languageAsp.net Web part and pagesCustom field definition: Lots of moving parts (XML files and classes) and complexity
  4. Go to Site contentAdd an App form Apps Store
  5. RequestRetrieve item(s) from databaseBind item(s) to ASP.NET Control(s)Return rendered HTML
  6. RequestRetrieve items from the SQL databaseReturn the item(s) as JSON variable inside the pageCall JavaScript rendering function when document be readyClienttemplte.js have functionality to render the list item(s)Custom JSLink templates override the OOTB templates
  7. Go to Site contentAdd an App form Apps Store
  8. Performance: because the rendering is performed on the client side, not the server, pages can load faster and work on the server is minimized. Flexibility: you can perform customizations on a single field or an entire view using either your own JavaScript functions or libraries such as jQuery.Standard development language (Cross-platform language): most Web developers will already be familiar with JavaScript, resulting in reduced development time for your customizations.Consistency: with SharePoint OOTB views and forms.
  9. Initialize the variable that store the objectThe Templates.Fields property enables you to access individual list fields.The function is changing the Description item to be bold. The RegisterTemplateOverrides function call registers the templates for the list to use.Learn “<#=ctx.ListTitle#>”
  10. UseClient-Side Rendering to Customize the Default List View~site/Style Library/CSR/FirstDemo.js
  11. Full Page: RequiredApp Parts and Custom Actions: OptionalCustom Action also known as “UI command extensions”
  12. UseClient-Side Rendering to Customize the Default List View~site/Style Library/CSR/FirstDemo.js
  13. Full Page: RequiredApp Parts and Custom Actions: OptionalCustom Action also known as “UI command extensions”
  14. Full Page: RequiredApp Parts and Custom Actions: OptionalCustom Action also known as “UI command extensions”
  15. Full Page: RequiredApp Parts and Custom Actions: OptionalCustom Action also known as “UI command extensions”
  16. UseClient-Side Rendering to Customize the Default List View~site/Style Library/CSR/FirstDemo.js
  17. UseClient-Side Rendering to Customize the Default List View~site/Style Library/CSR/FirstDemo.js