SlideShare a Scribd company logo
Knockout, TypeScript, and Nested Grids, Oh My!
Data-bound grids without Update Panels
© 2015 Applied Information Sciences, Inc.
Who is this guy?
 Software Engineer at Applied Information Sciences
 Contributing Author: Microsoft SharePoint 2013
Inside Out
 Year 10 of 15-Life with SharePoint
 @SPSamL
 blog.samlarko.com
 blog.Appliedis.com
© 2015 Applied Information Sciences, Inc.
Agenda
 Is TypeScript really useful?
 What are MV* Frameworks?
 Why Knockout, not Angular/Durandal/Aurelia?
 Code Walkthrough
> How it works
> Models
> ViewModels
> Views
> Extras (extensions, etc)
 Gotchas/Lessons learned/Facepalm moments
© 2015 Applied Information Sciences, Inc.
TypeScript
 Superset of JavaScript
 Strongly-typed variables
 Visual Studio Intellisense
 OOP
 Still just JavaScript
 ES Feature Implementations:
> Most ES5
> Many ES6
> Some ES7
© 2015 Applied Information Sciences, Inc.
MV* Frameworks
 MVC
> Controller determines Model
> Model passed to View
> View translates Model for presentation
> ASP.NET MVC, Angular, Aurelia
 MVVM
> Model and View are same as MVC
> VM provide data-binding between
Model and View, handles UI
actions
> Does not need to reference View
> Silverlight, Knockout, UWP apps
© 2015 Applied Information Sciences, Inc.
Momma said Knock[you]out
 JS Library
 Features
> 2-way Data-binding
> HTML Templating
 Angular/etc are frameworks with full app features
> Routing, dependency injection, scopes, services
 Knockout in SharePoint
> Already have navigation/routing
> SharePoint JSOM or REST for services
© 2015 Applied Information Sciences, Inc.
Knockout Observables
Observable
Observable Array
Computed Observable
KO Utilities
© 2015 Applied Information Sciences, Inc.
Knockout Markup
Events
Data
Containerless binding
Attributes
© 2015 Applied Information Sciences, Inc.
Knockout Extensibility
© 2015 Applied Information Sciences, Inc.
Nested Grids – Original Project
 Project had parent-child data that needed to be displayed in single page
> Search, filter, sort, paging
> Add & edit modals
 Content Types determined relationships
 No inline editing
© 2015 Applied Information Sciences, Inc.
Nested Grid Demo
 Added inline editing
> Allows multiple edits simultaneously
 Knockout HTML templates
© 2015 Applied Information Sciences, Inc.
© 2015 Applied Information Sciences, Inc.
Lessons Learned/Gotchas
© 2015 Applied Information Sciences, Inc.
Questions
© 2015 Applied Information Sciences, Inc.
Resources
 Scot Hillier post on Promises & JSOM -
http://www.shillier.com/archive/2013/03/04/using-promises-with-the-
javascript-client-object-model-in-sharepoint-2013.aspx
 TypeScript - http://www.typescriptlang.com
 KnockoutJS - http://learn.knockoutjs.com/
 DefinitelyTyped TS Definitions - http://definitelytyped.org/
 Simple KO Grid example - http://jsfiddle.net/brettwgreen/zfxmac7z/
 Rob Niemeyer - http://www.knockmeout.net/
© 2015 Applied Information Sciences, Inc.
Housekeeping…
 Download Lanyrd Mobile to get to the schedule easiest
> Available on both the Google Play Store and iOS App Store
 You must be present to win at the wrap-up…
 Remember to stop by to say hi to our sponsors
 Wifi: msevent66bq
© 2015 Applied Information Sciences, Inc.
Thanks to our Sponsors!!!
© 2015 Applied Information Sciences, Inc.
Join us at #SharePint at World of Beer of Reston in the
Towncenter just across the bridge
Why? To network with fellow SharePoint professionals
What? SharePint!!!
When? 4:45 PM
Where?
World of Beer Reston
1888 Explorer Street
Reston, VA 20190

More Related Content

Viewers also liked

Brochure Carmelo Golf - Uruguay
Brochure Carmelo Golf - UruguayBrochure Carmelo Golf - Uruguay
Brochure Carmelo Golf - Uruguay
Pix Propiedades
 
Art05 huerta
Art05 huertaArt05 huerta
Art05 huerta
jesus huerta
 
Yeli.an
Yeli.anYeli.an
презентація 2017 школи
презентація 2017 школипрезентація 2017 школи
презентація 2017 школи
AllaSt
 
Team Leadership Toolkit_Final v1.0
Team Leadership Toolkit_Final v1.0Team Leadership Toolkit_Final v1.0
Team Leadership Toolkit_Final v1.0
lee_anderson40
 
2016: Delivering Serious News-Conright
2016: Delivering Serious News-Conright2016: Delivering Serious News-Conright
2016: Delivering Serious News-Conright
SDGWEP
 
Obat wasir microlax, ambejoss atau ambeven
Obat wasir microlax, ambejoss atau ambevenObat wasir microlax, ambejoss atau ambeven
Obat wasir microlax, ambejoss atau ambeven
wawan wijanarko
 
6
66
6
UAEM
 
La sostenibilidad y la revolución energética
La sostenibilidad y la revolución energéticaLa sostenibilidad y la revolución energética
La sostenibilidad y la revolución energética
Noelia del Valle Nebiolo
 
Baltic astronomy (2000 2008)–a bibliometric study
Baltic astronomy (2000 2008)–a bibliometric studyBaltic astronomy (2000 2008)–a bibliometric study
Baltic astronomy (2000 2008)–a bibliometric study
Ghouse Modin Mamdapur
 
Cultura ciudadana Barranquilla
Cultura ciudadana BarranquillaCultura ciudadana Barranquilla
Cultura ciudadana Barranquilla
Carolina Gonzalez Salas
 

Viewers also liked (11)

Brochure Carmelo Golf - Uruguay
Brochure Carmelo Golf - UruguayBrochure Carmelo Golf - Uruguay
Brochure Carmelo Golf - Uruguay
 
Art05 huerta
Art05 huertaArt05 huerta
Art05 huerta
 
Yeli.an
Yeli.anYeli.an
Yeli.an
 
презентація 2017 школи
презентація 2017 школипрезентація 2017 школи
презентація 2017 школи
 
Team Leadership Toolkit_Final v1.0
Team Leadership Toolkit_Final v1.0Team Leadership Toolkit_Final v1.0
Team Leadership Toolkit_Final v1.0
 
2016: Delivering Serious News-Conright
2016: Delivering Serious News-Conright2016: Delivering Serious News-Conright
2016: Delivering Serious News-Conright
 
Obat wasir microlax, ambejoss atau ambeven
Obat wasir microlax, ambejoss atau ambevenObat wasir microlax, ambejoss atau ambeven
Obat wasir microlax, ambejoss atau ambeven
 
6
66
6
 
La sostenibilidad y la revolución energética
La sostenibilidad y la revolución energéticaLa sostenibilidad y la revolución energética
La sostenibilidad y la revolución energética
 
Baltic astronomy (2000 2008)–a bibliometric study
Baltic astronomy (2000 2008)–a bibliometric studyBaltic astronomy (2000 2008)–a bibliometric study
Baltic astronomy (2000 2008)–a bibliometric study
 
Cultura ciudadana Barranquilla
Cultura ciudadana BarranquillaCultura ciudadana Barranquilla
Cultura ciudadana Barranquilla
 

Similar to Knockout, TypeScript, and Nested Grids, Oh My!

A Smooth Transition to HTML5
A Smooth Transition to HTML5A Smooth Transition to HTML5
A Smooth Transition to HTML5
Chris Bannon
 
Cv vipin
Cv vipinCv vipin
Knockout js
Knockout jsKnockout js
Rajesh Uriti_7years_Sitecore_FrontEnd
Rajesh Uriti_7years_Sitecore_FrontEndRajesh Uriti_7years_Sitecore_FrontEnd
Rajesh Uriti_7years_Sitecore_FrontEnd
Rajesh Uriti
 
SPTypeOutGrid: Knockout + TypeScript + SharePoint 2010 = Cool Grids in List F...
SPTypeOutGrid: Knockout + TypeScript + SharePoint 2010 = Cool Grids in List F...SPTypeOutGrid: Knockout + TypeScript + SharePoint 2010 = Cool Grids in List F...
SPTypeOutGrid: Knockout + TypeScript + SharePoint 2010 = Cool Grids in List F...
Sam Larko
 
Manoj Kumar
Manoj KumarManoj Kumar
malliCV
malliCVmalliCV
Pradnya-CV
Pradnya-CVPradnya-CV
Pradnya-CV
Pradnya Hande
 
MVC 1.0 / JSR 371
MVC 1.0 / JSR 371MVC 1.0 / JSR 371
MVC 1.0 / JSR 371
David Delabassee
 
Sundaravel1- Resume.RTF
Sundaravel1- Resume.RTFSundaravel1- Resume.RTF
Sundaravel1- Resume.RTF
Sundaravel Govindarajulu
 
A Smooth Transition to HTML5 Using MVVM
A Smooth Transition to HTML5 Using MVVMA Smooth Transition to HTML5 Using MVVM
A Smooth Transition to HTML5 Using MVVM
Chris Bannon
 
Quick prototyping apps using JS - Ciklum, Vinnitsa
Quick prototyping apps using JS - Ciklum, VinnitsaQuick prototyping apps using JS - Ciklum, Vinnitsa
Quick prototyping apps using JS - Ciklum, Vinnitsa
Yuriy Silvestrov
 
S Kumar Resume
S Kumar ResumeS Kumar Resume
S Kumar Resume
S Kumar
 
How Facebook's Technologies can define the future of VistA and Health IT
How Facebook's Technologies can define the future of VistA and Health ITHow Facebook's Technologies can define the future of VistA and Health IT
How Facebook's Technologies can define the future of VistA and Health IT
Rob Tweed
 
Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Prototyping app using JS and HTML5 (Ciklum Kharkiv)Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Yuriy Silvestrov
 
Subhani - CV
Subhani - CVSubhani - CV
Subhani - CV
Mahaboob Subhani
 
Ramesh Elangovan
Ramesh ElangovanRamesh Elangovan
Ramesh Elangovan
Ramesh Elangovan
 
DOES15 - Sherry Chang - Intel’s Journey to Large Scale DevOps Transformation
DOES15 - Sherry Chang - Intel’s Journey to Large Scale DevOps Transformation DOES15 - Sherry Chang - Intel’s Journey to Large Scale DevOps Transformation
DOES15 - Sherry Chang - Intel’s Journey to Large Scale DevOps Transformation
Gene Kim
 
What’s new in VS 2015 and ALM 2015
What’s new in VS 2015 and ALM 2015What’s new in VS 2015 and ALM 2015
What’s new in VS 2015 and ALM 2015
SSW
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
Karthik Reddy
 

Similar to Knockout, TypeScript, and Nested Grids, Oh My! (20)

A Smooth Transition to HTML5
A Smooth Transition to HTML5A Smooth Transition to HTML5
A Smooth Transition to HTML5
 
Cv vipin
Cv vipinCv vipin
Cv vipin
 
Knockout js
Knockout jsKnockout js
Knockout js
 
Rajesh Uriti_7years_Sitecore_FrontEnd
Rajesh Uriti_7years_Sitecore_FrontEndRajesh Uriti_7years_Sitecore_FrontEnd
Rajesh Uriti_7years_Sitecore_FrontEnd
 
SPTypeOutGrid: Knockout + TypeScript + SharePoint 2010 = Cool Grids in List F...
SPTypeOutGrid: Knockout + TypeScript + SharePoint 2010 = Cool Grids in List F...SPTypeOutGrid: Knockout + TypeScript + SharePoint 2010 = Cool Grids in List F...
SPTypeOutGrid: Knockout + TypeScript + SharePoint 2010 = Cool Grids in List F...
 
Manoj Kumar
Manoj KumarManoj Kumar
Manoj Kumar
 
malliCV
malliCVmalliCV
malliCV
 
Pradnya-CV
Pradnya-CVPradnya-CV
Pradnya-CV
 
MVC 1.0 / JSR 371
MVC 1.0 / JSR 371MVC 1.0 / JSR 371
MVC 1.0 / JSR 371
 
Sundaravel1- Resume.RTF
Sundaravel1- Resume.RTFSundaravel1- Resume.RTF
Sundaravel1- Resume.RTF
 
A Smooth Transition to HTML5 Using MVVM
A Smooth Transition to HTML5 Using MVVMA Smooth Transition to HTML5 Using MVVM
A Smooth Transition to HTML5 Using MVVM
 
Quick prototyping apps using JS - Ciklum, Vinnitsa
Quick prototyping apps using JS - Ciklum, VinnitsaQuick prototyping apps using JS - Ciklum, Vinnitsa
Quick prototyping apps using JS - Ciklum, Vinnitsa
 
S Kumar Resume
S Kumar ResumeS Kumar Resume
S Kumar Resume
 
How Facebook's Technologies can define the future of VistA and Health IT
How Facebook's Technologies can define the future of VistA and Health ITHow Facebook's Technologies can define the future of VistA and Health IT
How Facebook's Technologies can define the future of VistA and Health IT
 
Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Prototyping app using JS and HTML5 (Ciklum Kharkiv)Prototyping app using JS and HTML5 (Ciklum Kharkiv)
Prototyping app using JS and HTML5 (Ciklum Kharkiv)
 
Subhani - CV
Subhani - CVSubhani - CV
Subhani - CV
 
Ramesh Elangovan
Ramesh ElangovanRamesh Elangovan
Ramesh Elangovan
 
DOES15 - Sherry Chang - Intel’s Journey to Large Scale DevOps Transformation
DOES15 - Sherry Chang - Intel’s Journey to Large Scale DevOps Transformation DOES15 - Sherry Chang - Intel’s Journey to Large Scale DevOps Transformation
DOES15 - Sherry Chang - Intel’s Journey to Large Scale DevOps Transformation
 
What’s new in VS 2015 and ALM 2015
What’s new in VS 2015 and ALM 2015What’s new in VS 2015 and ALM 2015
What’s new in VS 2015 and ALM 2015
 
Actively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net DeveloperActively looking for an opportunity to work as a challenging Dot Net Developer
Actively looking for an opportunity to work as a challenging Dot Net Developer
 

Recently uploaded

Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
safelyiotech
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
campbellclarkson
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !
Marcin Chrost
 
42 Ways to Generate Real Estate Leads - Sellxpert
42 Ways to Generate Real Estate Leads - Sellxpert42 Ways to Generate Real Estate Leads - Sellxpert
42 Ways to Generate Real Estate Leads - Sellxpert
vaishalijagtap12
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
dakas1
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
kalichargn70th171
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
OnePlan Solutions
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
XfilesPro
 
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptxOperational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
sandeepmenon62
 
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdfThe Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
kalichargn70th171
 
ACE - Team 24 Wrapup event at ahmedabad.
ACE - Team 24 Wrapup event at ahmedabad.ACE - Team 24 Wrapup event at ahmedabad.
ACE - Team 24 Wrapup event at ahmedabad.
Maitrey Patel
 
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data PlatformAlluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio, Inc.
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
ervikas4
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
Tier1 app
 
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
Luigi Fugaro
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
Pedro J. Molina
 

Recently uploaded (20)

Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !
 
42 Ways to Generate Real Estate Leads - Sellxpert
42 Ways to Generate Real Estate Leads - Sellxpert42 Ways to Generate Real Estate Leads - Sellxpert
42 Ways to Generate Real Estate Leads - Sellxpert
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
 
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptxOperational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
 
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdfThe Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
 
ACE - Team 24 Wrapup event at ahmedabad.
ACE - Team 24 Wrapup event at ahmedabad.ACE - Team 24 Wrapup event at ahmedabad.
ACE - Team 24 Wrapup event at ahmedabad.
 
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data PlatformAlluxio Webinar | 10x Faster Trino Queries on Your Data Platform
Alluxio Webinar | 10x Faster Trino Queries on Your Data Platform
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
 
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
 

Knockout, TypeScript, and Nested Grids, Oh My!

  • 1. Knockout, TypeScript, and Nested Grids, Oh My! Data-bound grids without Update Panels
  • 2. © 2015 Applied Information Sciences, Inc. Who is this guy?  Software Engineer at Applied Information Sciences  Contributing Author: Microsoft SharePoint 2013 Inside Out  Year 10 of 15-Life with SharePoint  @SPSamL  blog.samlarko.com  blog.Appliedis.com
  • 3. © 2015 Applied Information Sciences, Inc. Agenda  Is TypeScript really useful?  What are MV* Frameworks?  Why Knockout, not Angular/Durandal/Aurelia?  Code Walkthrough > How it works > Models > ViewModels > Views > Extras (extensions, etc)  Gotchas/Lessons learned/Facepalm moments
  • 4. © 2015 Applied Information Sciences, Inc. TypeScript  Superset of JavaScript  Strongly-typed variables  Visual Studio Intellisense  OOP  Still just JavaScript  ES Feature Implementations: > Most ES5 > Many ES6 > Some ES7
  • 5. © 2015 Applied Information Sciences, Inc. MV* Frameworks  MVC > Controller determines Model > Model passed to View > View translates Model for presentation > ASP.NET MVC, Angular, Aurelia  MVVM > Model and View are same as MVC > VM provide data-binding between Model and View, handles UI actions > Does not need to reference View > Silverlight, Knockout, UWP apps
  • 6. © 2015 Applied Information Sciences, Inc. Momma said Knock[you]out  JS Library  Features > 2-way Data-binding > HTML Templating  Angular/etc are frameworks with full app features > Routing, dependency injection, scopes, services  Knockout in SharePoint > Already have navigation/routing > SharePoint JSOM or REST for services
  • 7. © 2015 Applied Information Sciences, Inc. Knockout Observables Observable Observable Array Computed Observable KO Utilities
  • 8. © 2015 Applied Information Sciences, Inc. Knockout Markup Events Data Containerless binding Attributes
  • 9. © 2015 Applied Information Sciences, Inc. Knockout Extensibility
  • 10. © 2015 Applied Information Sciences, Inc. Nested Grids – Original Project  Project had parent-child data that needed to be displayed in single page > Search, filter, sort, paging > Add & edit modals  Content Types determined relationships  No inline editing
  • 11. © 2015 Applied Information Sciences, Inc. Nested Grid Demo  Added inline editing > Allows multiple edits simultaneously  Knockout HTML templates
  • 12. © 2015 Applied Information Sciences, Inc.
  • 13. © 2015 Applied Information Sciences, Inc. Lessons Learned/Gotchas
  • 14. © 2015 Applied Information Sciences, Inc. Questions
  • 15. © 2015 Applied Information Sciences, Inc. Resources  Scot Hillier post on Promises & JSOM - http://www.shillier.com/archive/2013/03/04/using-promises-with-the- javascript-client-object-model-in-sharepoint-2013.aspx  TypeScript - http://www.typescriptlang.com  KnockoutJS - http://learn.knockoutjs.com/  DefinitelyTyped TS Definitions - http://definitelytyped.org/  Simple KO Grid example - http://jsfiddle.net/brettwgreen/zfxmac7z/  Rob Niemeyer - http://www.knockmeout.net/
  • 16. © 2015 Applied Information Sciences, Inc. Housekeeping…  Download Lanyrd Mobile to get to the schedule easiest > Available on both the Google Play Store and iOS App Store  You must be present to win at the wrap-up…  Remember to stop by to say hi to our sponsors  Wifi: msevent66bq
  • 17. © 2015 Applied Information Sciences, Inc. Thanks to our Sponsors!!!
  • 18. © 2015 Applied Information Sciences, Inc. Join us at #SharePint at World of Beer of Reston in the Towncenter just across the bridge Why? To network with fellow SharePoint professionals What? SharePint!!! When? 4:45 PM Where? World of Beer Reston 1888 Explorer Street Reston, VA 20190

Editor's Notes

  1. Great for those of us who avoided JS Very C#-y
  2. Declarative binding makes for easy View data binding