SlideShare une entreprise Scribd logo
1  sur  25
Agility Systems, philly.NET User Group
bill@businessagility.net
SharePoint 2013
Client Side Rendering
2 | SharePoint Saturday New York City 2013
OUTLINE & AGENDA
• What is CSR?
• Demo: Lap around SP 2013
• Using JSLink in Views
• Demo: MLB Teams
• Using Display Templates in Search
• Demo: Refiners, result types, templates, oh
my!
• Custom Hover Panels
• Demo: MLB Parks
3 | SharePoint Saturday New York City 2013
SOME PERSPECTIVE
• SharePoint 2007
• CAML on server
• SharePoint 2010
• XML data, CSOM
• XSLT on server
• SharePoint 2013
• REST, CSOM, JSON
• CSR JavaScript
4 | SharePoint Saturday New York City 2013
WHAT IS CLIENT SIDE RENDERING?
• Extensive JavaScript libraries
• Functions for all major SharePoint UI
• Complements CSOM and REST
• Use JS, jQuery, KnockoutJS, Angular,
Promises
• Used internally for
• Navigation, ribbon, animation, themes
• Forms, views, list edit, callouts
• Search items, hover panels, refiners
DEMO: LAP AROUND SP 2013
• Get started
• animation
• Ribbon
• Animation, actions
• Focus content
• styles
• Edit links nav
• Site contents
• ECB and callouts
• Search
• hover panel, display templates
• Apps
• Documents
• Calendar
• Tasks
• Custom list
• Create without refresh
• Sort of like SPA
• Single Page Application
• F12
• script list
7 | SharePoint Saturday New York City 2013
DEVELOPER PERSPECTIVE
• SharePoint 2007
• Server side CAML and .NET code
• Web parts, event receivers
• SharePoint 2010
• Server side CAML, .NET code, XSLT views
• CSOM and limited REST client side
• SharePoint 2013
• REST, CSOM, JSON, mQuery in CSR
• App model
8 | SharePoint Saturday New York City 2013
COMMON DEVELOPER TASKS
• JSLink
• Lists, views
• Field formatting
• Web parts
• Content types
• Display Templates
• Content Search web part
• Search hover panel
• List callouts
9 | SharePoint Saturday New York City 2013
JSLINK
• Element added to view definitions and web parts
• Similar to XSLT in 2010
• Set in code or Advanced web part properties
• Points to JavaScript file
• Convenient storage in _catalog/masterpage
• Content type collects required metadata
• Edit with SharePoint Designer, Visual Studio,
text
• Debug with browser tools or VS
10 | SharePoint Saturday New York City 2013
JSLINK RENDERCONTEXT
• Templates collection
• Header, item, footer, and others
• Register with scope
• BaseViewID, ListTemplateType, ControlMode
• Need additional commands for MDS timing
• RegisterModuleInit
11 | SharePoint Saturday New York City 2013
JSLINK RENDERCONTEXT
• OnPreRender
• Has data
• No markup
• Dynamic lookups
• OnPostRender
• Complete DOM
• jQuery tricks
• Operations on entire result set
12 | SharePoint Saturday New York City 2013
JSLINK RENDERCONTEXT
• ListData
• Stores data
• Columns based on CAML
• ListSchema
• Stores metadata
• ctx
• Context of current operation
• Instance metadata: user, site, list, etc.
13 | SharePoint Saturday New York City 2013
JSLINK ADVANCED
• SPClientRenderer.Render()
• From arbitrary data
• Outside of page context
• In AJAX methods
14 | SharePoint Saturday New York City 2013
DEMO: JSLINK IN VIEWS
• _catalogmasterpage, upload file, content type
• JSLink pointer in default view
• Prove it works with Alert, anonymous function
• Custom field, multiple fields, formatting,
functions
• MDS issue and Register
• Row highlight with OnRender
• Override entire view, show on new page
• Edit/New form hidden and read only fields
15 | SharePoint Saturday New York City 2013
16 | SharePoint Saturday New York City 2013
17 | SharePoint Saturday New York City 2013
DISPLAY TEMPLATES
• Work much like web parts
• Connected to some data source
• Use in search result web part via result type
• Use in content by search web part (on-premise)
• Similar to JSLink in approach
• Can share utility libraries
• Data comes from search index
• Managed properties with Retrieve flag
• <mso:ManagedPropertyMapping>
18 | SharePoint Saturday New York City 2013
DISPLAY TEMPLATES
• Stored in _catalogs/masterpage/Display Templates/
• Scope at collection or site level
• Library with content types
• Supports versioning
• Can deploy with solutions and feature receivers
• Editors
• Visual Studio
• SharePoint Designer
• NotePad++ or similar
19 | SharePoint Saturday New York City 2013
DISPLAY TEMPLATES
• Folders
• Content Web Parts
• Filters
• Language Files
• Search
• Server Style Sheets
• System
20 | SharePoint Saturday New York City 2013
DEMO: DISPLAY TEMPLATES
• Show location of display templates
• Show filter edit for refiner counts
• Explain refiners
• Show team result type
• Demo team display template
21 | SharePoint Saturday New York City 2013
22 | SharePoint Saturday New York City 2013
HOVER PANELS
• Floating DIV with header, content, footer, actions
• AKA Callouts
• Used extensively in OOTB UI
• Essential to search experience
• Associated with a display template, result
type
• Use CalloutManager
• Attach to launchpoint
• Set beak orientation
23 | SharePoint Saturday New York City 2013
DEMO: HOVER PANELS
• Show existing JS templates
• Demo PDF object in Search page
• Explain team hover
24 | SharePoint Saturday New York City 2013
CSR SUMMARY
• Learn how Microsoft makes SP pages responsive
• Invest in JavaScript talent
• Use REST and JSON to retrieve data
• Convert some views to JSLink overrides
• Make some Search display templates
• Try some hover panels
• On-premise:
• Investigate Content by Search web part
THANK YOU
EVENT SPONSORS
• Please visit them and inquire about
their products & services
• To win prizes make sure to get your
bingo card stamped by ALL sponsors

Contenu connexe

Tendances

SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
SharePoint 2013 Client-Side Rendering (CSR) & JSLink TemplatesSharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
SharePoint 2013 Client-Side Rendering (CSR) & JSLink TemplatesMuawiyah Shannak
 
Transform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSSTransform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSSJohn Calvert
 
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 OBrienChris O'Brien
 
Introduction to using jQuery with SharePoint
Introduction to using jQuery with SharePointIntroduction to using jQuery with SharePoint
Introduction to using jQuery with SharePointRene Modery
 
SharePoint Framework, React and Office UI SPS Paris 2016 - d01
SharePoint Framework, React and Office UI SPS Paris 2016 - d01SharePoint Framework, React and Office UI SPS Paris 2016 - d01
SharePoint Framework, React and Office UI SPS Paris 2016 - d01Sonja Madsen
 
Working with a super model for SharePoint Tuga IT 2016
Working with a super model for SharePoint Tuga IT 2016Working with a super model for SharePoint Tuga IT 2016
Working with a super model for SharePoint Tuga IT 2016Sonja Madsen
 
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
TulsaTechFest - Maximize SharePoint UX with free jQuery librariesTulsaTechFest - Maximize SharePoint UX with free jQuery libraries
TulsaTechFest - Maximize SharePoint UX with free jQuery librariesMark Rackley
 
SharePoint 2013: Using Client-Side Rendering to color-code list cells
SharePoint 2013: Using Client-Side Rendering to color-code list cellsSharePoint 2013: Using Client-Side Rendering to color-code list cells
SharePoint 2013: Using Client-Side Rendering to color-code list cellsRandy Mullis
 
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...Chris O'Brien
 
The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14Mark Rackley
 
Using jQuery to Maximize Form Usability
Using jQuery to Maximize Form UsabilityUsing jQuery to Maximize Form Usability
Using jQuery to Maximize Form UsabilityMark Rackley
 
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 3Ryan McIntyre
 
4 tools, sandboxed solutionds, web part development
4   tools, sandboxed solutionds, web part development4   tools, sandboxed solutionds, web part development
4 tools, sandboxed solutionds, web part developmenticdesktop
 
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint LimitationsSPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint LimitationsMark Rackley
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQueryMark Rackley
 
(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery GuideMark Rackley
 
SPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideSPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideMark Rackley
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesMark Rackley
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointMark Rackley
 

Tendances (20)

SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
SharePoint 2013 Client-Side Rendering (CSR) & JSLink TemplatesSharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
 
Transform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSSTransform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSS
 
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
 
Introduction to using jQuery with SharePoint
Introduction to using jQuery with SharePointIntroduction to using jQuery with SharePoint
Introduction to using jQuery with SharePoint
 
SharePoint Framework, React and Office UI SPS Paris 2016 - d01
SharePoint Framework, React and Office UI SPS Paris 2016 - d01SharePoint Framework, React and Office UI SPS Paris 2016 - d01
SharePoint Framework, React and Office UI SPS Paris 2016 - d01
 
Working with a super model for SharePoint Tuga IT 2016
Working with a super model for SharePoint Tuga IT 2016Working with a super model for SharePoint Tuga IT 2016
Working with a super model for SharePoint Tuga IT 2016
 
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
TulsaTechFest - Maximize SharePoint UX with free jQuery librariesTulsaTechFest - Maximize SharePoint UX with free jQuery libraries
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
 
SharePoint 2013: Using Client-Side Rendering to color-code list cells
SharePoint 2013: Using Client-Side Rendering to color-code list cellsSharePoint 2013: Using Client-Side Rendering to color-code list cells
SharePoint 2013: Using Client-Side Rendering to color-code list cells
 
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
 
The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14
 
Using jQuery to Maximize Form Usability
Using jQuery to Maximize Form UsabilityUsing jQuery to Maximize Form Usability
Using jQuery to Maximize Form Usability
 
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
 
App deployment
App deploymentApp deployment
App deployment
 
4 tools, sandboxed solutionds, web part development
4   tools, sandboxed solutionds, web part development4   tools, sandboxed solutionds, web part development
4 tools, sandboxed solutionds, web part development
 
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint LimitationsSPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuery
 
(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide
 
SPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideSPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuide
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery Libraries
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
 

Similaire à SharePoint 2013 Client Side Rendering

SharePoint Development in Government Environments
SharePoint Development in Government EnvironmentsSharePoint Development in Government Environments
SharePoint Development in Government EnvironmentsGunjan Datta
 
Custom Development for SharePoint
Custom Development for SharePointCustom Development for SharePoint
Custom Development for SharePointTalbott Crowell
 
SharePoint Development in Government Environments
SharePoint Development in Government EnvironmentsSharePoint Development in Government Environments
SharePoint Development in Government EnvironmentsGunjan Datta
 
SharePoint 2013 Search Based Solutions
SharePoint 2013 Search Based SolutionsSharePoint 2013 Search Based Solutions
SharePoint 2013 Search Based SolutionsSPC Adriatics
 
Developing Search-driven application in SharePoint 2013
 Developing Search-driven application in SharePoint 2013  Developing Search-driven application in SharePoint 2013
Developing Search-driven application in SharePoint 2013 SPC Adriatics
 
BEST INSTITUTE FOR WEB DESIGNING
BEST INSTITUTE FOR WEB DESIGNINGBEST INSTITUTE FOR WEB DESIGNING
BEST INSTITUTE FOR WEB DESIGNINGwebdevelopment8
 
MIGRATION - PAIN OR GAIN?
MIGRATION - PAIN OR GAIN?MIGRATION - PAIN OR GAIN?
MIGRATION - PAIN OR GAIN?DrupalCamp Kyiv
 
DogFoodCon - Understanding and customizing the modern SharePoint experience
DogFoodCon - Understanding and customizing the modern SharePoint experienceDogFoodCon - Understanding and customizing the modern SharePoint experience
DogFoodCon - Understanding and customizing the modern SharePoint experiencePatrick Tucker
 
Become a Full Stack Web Developer (.NET) - Thisiswali
Become a Full Stack Web Developer (.NET) - ThisiswaliBecome a Full Stack Web Developer (.NET) - Thisiswali
Become a Full Stack Web Developer (.NET) - Thisiswalithisiswali
 
CORE JAVA & ADVANCE JAVA
CORE JAVA & ADVANCE JAVACORE JAVA & ADVANCE JAVA
CORE JAVA & ADVANCE JAVABALUJAINSTITUTE
 
9 Months Web Development Diploma Course in North Delhi
9 Months Web Development Diploma Course in North Delhi9 Months Web Development Diploma Course in North Delhi
9 Months Web Development Diploma Course in North DelhiJessica Smith
 
Means stack course in pune(etlhive)
Means stack course in pune(etlhive)Means stack course in pune(etlhive)
Means stack course in pune(etlhive)sambhajimeher
 
Full Stack Developer Course | Infinite Graphix Technologies
Full Stack Developer Course | Infinite Graphix TechnologiesFull Stack Developer Course | Infinite Graphix Technologies
Full Stack Developer Course | Infinite Graphix TechnologiesInfinite Graphix Technologies
 
Internet Marketing Institute in Delhi
Internet Marketing Institute in DelhiInternet Marketing Institute in Delhi
Internet Marketing Institute in DelhiJessica Smith
 
Microsoft sharepoint business intelligence training
Microsoft sharepoint business intelligence trainingMicrosoft sharepoint business intelligence training
Microsoft sharepoint business intelligence trainingsharepointmasters
 

Similaire à SharePoint 2013 Client Side Rendering (20)

SharePoint Development in Government Environments
SharePoint Development in Government EnvironmentsSharePoint Development in Government Environments
SharePoint Development in Government Environments
 
Custom Development for SharePoint
Custom Development for SharePointCustom Development for SharePoint
Custom Development for SharePoint
 
Sharepoint 2010 content
Sharepoint 2010 contentSharepoint 2010 content
Sharepoint 2010 content
 
SharePoint Development in Government Environments
SharePoint Development in Government EnvironmentsSharePoint Development in Government Environments
SharePoint Development in Government Environments
 
Software development
Software  development Software  development
Software development
 
SharePoint 2013 Search Based Solutions
SharePoint 2013 Search Based SolutionsSharePoint 2013 Search Based Solutions
SharePoint 2013 Search Based Solutions
 
Developing Search-driven application in SharePoint 2013
 Developing Search-driven application in SharePoint 2013  Developing Search-driven application in SharePoint 2013
Developing Search-driven application in SharePoint 2013
 
BEST INSTITUTE FOR WEB DESIGNING
BEST INSTITUTE FOR WEB DESIGNINGBEST INSTITUTE FOR WEB DESIGNING
BEST INSTITUTE FOR WEB DESIGNING
 
MIGRATION - PAIN OR GAIN?
MIGRATION - PAIN OR GAIN?MIGRATION - PAIN OR GAIN?
MIGRATION - PAIN OR GAIN?
 
DogFoodCon - Understanding and customizing the modern SharePoint experience
DogFoodCon - Understanding and customizing the modern SharePoint experienceDogFoodCon - Understanding and customizing the modern SharePoint experience
DogFoodCon - Understanding and customizing the modern SharePoint experience
 
Become a Full Stack Web Developer (.NET) - Thisiswali
Become a Full Stack Web Developer (.NET) - ThisiswaliBecome a Full Stack Web Developer (.NET) - Thisiswali
Become a Full Stack Web Developer (.NET) - Thisiswali
 
CORE JAVA & ADVANCE JAVA
CORE JAVA & ADVANCE JAVACORE JAVA & ADVANCE JAVA
CORE JAVA & ADVANCE JAVA
 
9 Months Web Development Diploma Course in North Delhi
9 Months Web Development Diploma Course in North Delhi9 Months Web Development Diploma Course in North Delhi
9 Months Web Development Diploma Course in North Delhi
 
Asp.net
Asp.netAsp.net
Asp.net
 
Means stack course in pune(etlhive)
Means stack course in pune(etlhive)Means stack course in pune(etlhive)
Means stack course in pune(etlhive)
 
Full Stack Developer Course | Infinite Graphix Technologies
Full Stack Developer Course | Infinite Graphix TechnologiesFull Stack Developer Course | Infinite Graphix Technologies
Full Stack Developer Course | Infinite Graphix Technologies
 
Internet Marketing Institute in Delhi
Internet Marketing Institute in DelhiInternet Marketing Institute in Delhi
Internet Marketing Institute in Delhi
 
Microsoft sharepoint business intelligence training
Microsoft sharepoint business intelligence trainingMicrosoft sharepoint business intelligence training
Microsoft sharepoint business intelligence training
 
Software development
Software developmentSoftware development
Software development
 
Ui devopler
Ui devoplerUi devopler
Ui devopler
 

Dernier

WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 

Dernier (20)

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 

SharePoint 2013 Client Side Rendering

  • 1. Agility Systems, philly.NET User Group bill@businessagility.net SharePoint 2013 Client Side Rendering
  • 2. 2 | SharePoint Saturday New York City 2013 OUTLINE & AGENDA • What is CSR? • Demo: Lap around SP 2013 • Using JSLink in Views • Demo: MLB Teams • Using Display Templates in Search • Demo: Refiners, result types, templates, oh my! • Custom Hover Panels • Demo: MLB Parks
  • 3. 3 | SharePoint Saturday New York City 2013 SOME PERSPECTIVE • SharePoint 2007 • CAML on server • SharePoint 2010 • XML data, CSOM • XSLT on server • SharePoint 2013 • REST, CSOM, JSON • CSR JavaScript
  • 4. 4 | SharePoint Saturday New York City 2013 WHAT IS CLIENT SIDE RENDERING? • Extensive JavaScript libraries • Functions for all major SharePoint UI • Complements CSOM and REST • Use JS, jQuery, KnockoutJS, Angular, Promises • Used internally for • Navigation, ribbon, animation, themes • Forms, views, list edit, callouts • Search items, hover panels, refiners
  • 5. DEMO: LAP AROUND SP 2013 • Get started • animation • Ribbon • Animation, actions • Focus content • styles • Edit links nav • Site contents • ECB and callouts • Search • hover panel, display templates • Apps • Documents • Calendar • Tasks • Custom list • Create without refresh • Sort of like SPA • Single Page Application • F12 • script list
  • 6.
  • 7. 7 | SharePoint Saturday New York City 2013 DEVELOPER PERSPECTIVE • SharePoint 2007 • Server side CAML and .NET code • Web parts, event receivers • SharePoint 2010 • Server side CAML, .NET code, XSLT views • CSOM and limited REST client side • SharePoint 2013 • REST, CSOM, JSON, mQuery in CSR • App model
  • 8. 8 | SharePoint Saturday New York City 2013 COMMON DEVELOPER TASKS • JSLink • Lists, views • Field formatting • Web parts • Content types • Display Templates • Content Search web part • Search hover panel • List callouts
  • 9. 9 | SharePoint Saturday New York City 2013 JSLINK • Element added to view definitions and web parts • Similar to XSLT in 2010 • Set in code or Advanced web part properties • Points to JavaScript file • Convenient storage in _catalog/masterpage • Content type collects required metadata • Edit with SharePoint Designer, Visual Studio, text • Debug with browser tools or VS
  • 10. 10 | SharePoint Saturday New York City 2013 JSLINK RENDERCONTEXT • Templates collection • Header, item, footer, and others • Register with scope • BaseViewID, ListTemplateType, ControlMode • Need additional commands for MDS timing • RegisterModuleInit
  • 11. 11 | SharePoint Saturday New York City 2013 JSLINK RENDERCONTEXT • OnPreRender • Has data • No markup • Dynamic lookups • OnPostRender • Complete DOM • jQuery tricks • Operations on entire result set
  • 12. 12 | SharePoint Saturday New York City 2013 JSLINK RENDERCONTEXT • ListData • Stores data • Columns based on CAML • ListSchema • Stores metadata • ctx • Context of current operation • Instance metadata: user, site, list, etc.
  • 13. 13 | SharePoint Saturday New York City 2013 JSLINK ADVANCED • SPClientRenderer.Render() • From arbitrary data • Outside of page context • In AJAX methods
  • 14. 14 | SharePoint Saturday New York City 2013 DEMO: JSLINK IN VIEWS • _catalogmasterpage, upload file, content type • JSLink pointer in default view • Prove it works with Alert, anonymous function • Custom field, multiple fields, formatting, functions • MDS issue and Register • Row highlight with OnRender • Override entire view, show on new page • Edit/New form hidden and read only fields
  • 15. 15 | SharePoint Saturday New York City 2013
  • 16. 16 | SharePoint Saturday New York City 2013
  • 17. 17 | SharePoint Saturday New York City 2013 DISPLAY TEMPLATES • Work much like web parts • Connected to some data source • Use in search result web part via result type • Use in content by search web part (on-premise) • Similar to JSLink in approach • Can share utility libraries • Data comes from search index • Managed properties with Retrieve flag • <mso:ManagedPropertyMapping>
  • 18. 18 | SharePoint Saturday New York City 2013 DISPLAY TEMPLATES • Stored in _catalogs/masterpage/Display Templates/ • Scope at collection or site level • Library with content types • Supports versioning • Can deploy with solutions and feature receivers • Editors • Visual Studio • SharePoint Designer • NotePad++ or similar
  • 19. 19 | SharePoint Saturday New York City 2013 DISPLAY TEMPLATES • Folders • Content Web Parts • Filters • Language Files • Search • Server Style Sheets • System
  • 20. 20 | SharePoint Saturday New York City 2013 DEMO: DISPLAY TEMPLATES • Show location of display templates • Show filter edit for refiner counts • Explain refiners • Show team result type • Demo team display template
  • 21. 21 | SharePoint Saturday New York City 2013
  • 22. 22 | SharePoint Saturday New York City 2013 HOVER PANELS • Floating DIV with header, content, footer, actions • AKA Callouts • Used extensively in OOTB UI • Essential to search experience • Associated with a display template, result type • Use CalloutManager • Attach to launchpoint • Set beak orientation
  • 23. 23 | SharePoint Saturday New York City 2013 DEMO: HOVER PANELS • Show existing JS templates • Demo PDF object in Search page • Explain team hover
  • 24. 24 | SharePoint Saturday New York City 2013 CSR SUMMARY • Learn how Microsoft makes SP pages responsive • Invest in JavaScript talent • Use REST and JSON to retrieve data • Convert some views to JSLink overrides • Make some Search display templates • Try some hover panels • On-premise: • Investigate Content by Search web part
  • 25. THANK YOU EVENT SPONSORS • Please visit them and inquire about their products & services • To win prizes make sure to get your bingo card stamped by ALL sponsors