Learning DHTMLX Suite UI
By Eli Geske
()
About this ebook
Related to Learning DHTMLX Suite UI
Related ebooks
HTML5,CSS3,Javascript and JQuery Mobile Programming: Beginning to End Cross-Platform App Design Rating: 5 out of 5 stars5/5Mastering ServiceStack Rating: 0 out of 5 stars0 ratingsjQuery 1.3 with PHP Rating: 0 out of 5 stars0 ratingsPractical Oracle JET: Developing Enterprise Applications in JavaScript Rating: 0 out of 5 stars0 ratingsInstant PhoneGap Social App Development Rating: 0 out of 5 stars0 ratingsLearning Azure DocumentDB Rating: 0 out of 5 stars0 ratingsJavaScript Unlocked Rating: 5 out of 5 stars5/5PHPEclipse: A User Guide Rating: 3 out of 5 stars3/5Mastering Bootstrap 4 Rating: 5 out of 5 stars5/5Mastering Backbone.js Rating: 0 out of 5 stars0 ratingsLearning .NET High-performance Programming Rating: 0 out of 5 stars0 ratingsHTML5 for Flash Developers Rating: 5 out of 5 stars5/5Microsoft Blazor: Building Web Applications in .NET Rating: 0 out of 5 stars0 ratingsGetting Started with React Rating: 0 out of 5 stars0 ratingsMicrosoft AJAX Library Essentials: Client-side ASP.NET AJAX 1.0 Explained Rating: 0 out of 5 stars0 ratingsLearning PHP 7 High Performance Rating: 0 out of 5 stars0 ratingsNode.js By Example Rating: 2 out of 5 stars2/5PhoneGap for Enterprise Rating: 0 out of 5 stars0 ratingsCodeIgniter 1.7 Rating: 0 out of 5 stars0 ratingsHow To Program A Mobile Game Rating: 4 out of 5 stars4/5How To Create An App Rating: 3 out of 5 stars3/5Persistence in PHP with Doctrine ORM Rating: 0 out of 5 stars0 ratingsBuilding Scalable Apps with Redis and Node.js Rating: 0 out of 5 stars0 ratingsASP.NET Core 3 and React: Hands-On full stack web development using ASP.NET Core, React, and TypeScript 3 Rating: 0 out of 5 stars0 ratingsBuilding Websites with VB.NET and DotNetNuke 4 Rating: 1 out of 5 stars1/5AJAX Interview Questions, Answers, and Explanations: AJAX Certification Review Rating: 0 out of 5 stars0 ratingsLeap Motion Development Essentials Rating: 0 out of 5 stars0 ratings
Programming For You
Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5TensorFlow in 1 Day: Make your own Neural Network Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Python QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsC All-in-One Desk Reference For Dummies Rating: 5 out of 5 stars5/5C# 7.0 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsC++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsPython for Beginners: Learn the Fundamentals of Computer Programming Rating: 0 out of 5 stars0 ratingsNarrative Design for Indies: Getting Started Rating: 4 out of 5 stars4/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Programming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5C# Programming from Zero to Proficiency (Beginner): C# from Zero to Proficiency, #2 Rating: 0 out of 5 stars0 ratings
Reviews for Learning DHTMLX Suite UI
0 ratings0 reviews
Book preview
Learning DHTMLX Suite UI - Eli Geske
Table of Contents
Learning DHTMLX Suite UI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. User Management Web App
About DHTMLX
DHTMLX and other component libraries
The components
What will we be building?
Summary
2. Download, Setup, and Test
Installing a web server
Creating the application directory structure
Downloading the DHTMLX library
Creating the application file app.js
The data storage file
Creating the index.html file
Testing the DHTMLX installation
Summary
3. Data Structures, Storage, and Callbacks
localStorage
Creating the storage object
The storage methods and properties
lastStoredId
setDateFormat
The user methods
The user model
createUser
The user parameter
getUser
updateUser
removeUser
The grid methods
The grid JSON data structure
gridRow
getUserGrid
The chart methods
barChartItem
createUserBarChart
The storage object
The callbacks object
Summary
4. The DHTMLX Layout
The DHTMLX layout
The methods and events
Initialization
Methods
Cell sizing
setHeight
setWidth
fixSize
Cell header
showHeader and hideHeader
setText
progressOn and progressOff
Overview of methods
Layout events
attachEvent and detachEvent
dhtmlxEvent
The application code
Create the layout
Summary
5. The DHTMLX Toolbar
The DHTMLX toolbar
The methods and events
Initialization choices
Initialization on a DOM element
Initialization on a layout object
Initialization on a cell object
Toolbar items
addButton
addButtonTwoState
getItemState
addSeparator
addText
addButtonSelect
getListOptionSelected
addSpacer
removeSpacer
addSlider
addInput
getValue
hideItem and showItem
removeItem
Toolbar events
onClick
onValueChange
onStateChange
onEnter
The application code
Creating the toolbar
Summary
6. The DHTMLX Grid
The DHTMLX grid
The grid methods and events
Initialization choices
Initialization on a DOM element
Initialization on a cell object
Grid methods
attachGrid
setImagePath
setHeader
setInitWidths
setColAlign
init
addRow
setColTypes
getSelectedRowId
clearSelection
clearAll
parse
Grid events
onRowDblClicked
onRowSelect
The application code
Create the grid
callbacks.setToolbarItemStates
callbacks.removeClick
callbacks.refreshGrid
callbacks.dataChanged
Testing the grid
Creating a user
Removing a user
Summary
7. The DHTMLX Window
The DHTMLX window
The methods and events
Initialization
Creating the base object
Create windows through methods
Methods
createWindow (base object method)
setDimension
denyResize
centerOnScreen
setModal
hide
show
setText
hideHeader
showHeader
Events
onClose
The application code
Creating the pop-up window
callbacks
showPopup
hidePopup
addClick
Test our popup
Summary
8. The DHTMLX Form and Calendar
The DHTMLX form
Initialization of the DHTMLX form
attachForm
Form items and attributes
settings
input
hidden
checkbox
calendar
select
button
block
newcolumn
Form methods
setItemFocus()
validate()
clear()
enableLiveValidation()
setFormData()
getFormData()
The application code
app.js
callbacks
showPopup()
hidePopup()
editClick()
Edit the CSS form
index.html
Test the application form
Summary
9. The DHTMLX Chart
The methods and events
Initialization of the DHTMLX chart
dhtmlXChart()
addChart()
Methods
refresh()
add()
define()
Define a series
Define chart type
addSeries()
idByIndex()
get()
Events
onItemClick
The application code
Creating the chart
callbacks.refreshChart()
callbacks.dataChanged()
Test the application
Summary
10. The Finish Line
Testing
Troubleshooting
More features
Server side
Adding icons
Event tweaks
Chart ideas
Summary
Index
Learning DHTMLX Suite UI
Learning DHTMLX Suite UI
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: October 2013
Production Reference: 1221013
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84969-933-4
www.packtpub.com
Cover Image by Eli Geske (<ejgeske@yahoo.com>)
Credits
Author
Eli Geske
Reviewers
Asen Bozhilov
Ali Farhadi
Ed Wildgoose
Acquisition Editor
Kartikey Pandey
Julian Ursell
Commissioning Editor
Govindan K
Technical Editors
Dipika Gaonkar
Mrunmayee Patil
Project Coordinator
Amey Sawant
Proofreader
Lauren Harkins
Indexer
Hemangini Bari
Graphics
Ronak Dhruv
Production Coordinator
Kyle Albuquerque
Cover Work
Kyle Albuquerque
About the Author
Eli Geske is an entrepreneurial graphics designer turned programmer. He has been involved in web applications from creating and enhancing online gaming communities, to building applications that improve company's efficiency. He has also invented products, put in for patents, and pushed them to market. His programming skills range from JavaScript, PHP, and C# which he uses in the medical industry, payment processing industry, and on custom order management sites. He also has a degree in computer science, focusing on networking and web server administration.
His knowledge of DHTMLX springs from his daily engagements in a current large scale medical application.
Some other of Eli's writings and public offerings can be viewed on his blog www.eligeske.com or on eligeske.github.com.
Throughout the past couple of years, my daily involvement with the DHTMLX components Suite has included working with a wonderful development team locally and abroad. These people have given me the ability to expand my knowledge and learn new things. I'd like to send out thanks to Igor Lopez, Bruno Spinelli, Tengiz Tutisani, Jaya Uradhanda, Sergey Bilida, Dmitry Shumarov, and Sergio Reyes who are a part of that great team! I would also like to thank, Roberto and Victor Beraja, whose visions have stretched the DHTMLX library to its limits on more than one occasion. Cheers!
About the Reviewers
Asen Bozhilov is web developer with years of experience in web technologies. Currently, he is working on XULRunner applications using JavaScript and XUL. He has a bachelor's degree in computer science. In his spare time, he likes to experiment with new technologies and programming languages. His interests are mostly in the computer sciences, but he also enjoys sport activities.
He has reviewed other JavaScript books, such as Maintainable JavaScript, JavaScript Patterns, and JavaScript for PHP developers.
Ali Farhadi is a senior web developer and system administrator living in Mashhad, Iran. He is passionate about working on open source technology and has contributed to the major php frameworks, CakePHP, and Lithium.
He is also one of the pioneers in the Persian node.js community and has contributed to the core project since 2009. He has also authored a few open source projects notably the HTML5Sortable jQuery plugin and SMPP module for node.js.
You can read more about him and his works at his website http://farhadi.ir.
Ed Wildgoose grew up in the time when a ZX81 was cutting edge and spent his formative years slaving away in the finance world, before deciding that the way ahead was to start slaving away for even longer hours and less money as his own boss. He enjoys learning about the art of IT for its own sake and has played with most common (and uncommon) programming languages and tools over the years (Did anyone else enjoy using Haskell in the early 90s?). He has developed projects on Mac, Windows, and Linux over past years, but most currently favors Linux for backend servers and Mac on the desktop.
He currently owns MailASail (http://mailasail.com), a boutique,