Built-in Kentico CMS UI Controls

Slides:



Advertisements
Similar presentations
Built-in Kentico CMS UI Controls
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
CC SQL Utilities.
Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
Module 2 Navigation.     Homepage Homepage  Navigation pane that holds the Applications and Modules  Click the double down arrow on the right of.
Customizing the MOSS 2007 Search Results November 2007 Rafael Perez.
Dawn Pedersen Art Institute. What is Spry? Spry is Dreamweaver’s version of JavaScript libraries. Spry effects alter the look of a page element—or of.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Chapter 9 Customizing Data with Web Controls. ASP.NET 2.0, Third Edition2.
® Microsoft Office 2010 Word Tutorial 3 Creating a Multiple-Page Report.
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
SUNY Morrisville-Norwich Campus- Week 7 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
SiS Technical Training Development Track Day 3 & Day 4.
Tutorial 11: Connecting to External Data
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 4: Working with Forms.
® IBM Software Group © 2006 IBM Corporation JSF Tab Controls This Learning Module shows how to develop server-side EGL applications with dynamic content.
CST JavaScript Validating Form Data with JavaScript.
131 Agenda Overview Review Roles Lists Libraries Columns.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Lesson 5: Using Tables.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Databases and LINQ Visual Basic 2010 How to Program 1.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Building a UI with Zen Pat McGibbon –Sales Engineer.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Chapter 71 Building Data-Driven ASP.NET Applications Introduction to ASP.NET By Kathleen Kalata.
Creating a Web Site to Gather Data and Conduct Research.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
S511 Session 7, IU-SLIS 1 DB Implementation: MS Access Forms.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
CREATING TEMPLATES CREATING CUSTOM CHARACTERS IMPORTING BATCH DATA SAVING DATA & TEMPLATES CREATING SERIES DATA PRINTING THE DATA.
® Microsoft Office 2010 Word Tutorial 3 Creating a Multiple-Page Report.
Key Applications Module Lesson 21 — Access Essentials
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
1 Chapter 12 – Web Applications 12.1 Programming for the Web, Part I 12.2 Programming for the Web, Part II 12.3 Using Databases in Web Programs.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
Data Binding with Tabular Data Control. Objective To understand Dynamic HTML data binding. To be able to sort and filter data directly on the client without.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
The material contained in this document is proprietary to Triniti Corporation (Triniti). This material may not be disclosed, duplicated or otherwise revealed,
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
Introduction to Views Stanford Drupal Camp April 6, 2013.
Reference: “ASP.NET 2.0 Illustrated” by Alex Homer and Dave Sussman. -ch3 illustrated book
© MECHAN 2009 All right reserved. MecGrid W I Z A R D How to be a magician for your MecGrid. Data Visual with W I Z A R D.
January 2006Colby College ITS Setting Up Course Pages.
Looking at various Rich Message options in KRAD Kuali University: Apply Now Lab : Rich Messages Lab Objectives Understand what Rich Messages are and how.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Creating Tables LESSON 6 - #1.06 ESSENTIAL STANDARD #1 - UNDERSTAND WORD PROCESSING INDICATOR #6 – CREATING TABLES.
WaveMaker Visual AJAX Studio 4.0 Training Java Script Events.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
Adxstudio Portals Training
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
Chapter 10 Dynamic HTML (DHTML) JavaScript, Third Edition.
Easy Site Navigation Getting organized, staying organized Creating custom site-navigation controls Using Menu, TreeView, and SiteMenuPath controls Make.
1 Organizing Information in Tables A table is information arranged in horizontal rows and vertical columns When you first insert a table into a document,
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
1 Word Processing Intermediate Using Microsoft Office 2000.
Does your website speak Chinese? Thom Robbins
Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition
Microsoft Office 2007-Illustrated
Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition
Using Cascading Style Sheets (CSS)
Presentation transcript:

Built-in Kentico CMS UI Controls Part I - UniGrid Karol Jarkovsky Sr. Solution Architect Kentico Software http://devnet.kentico.com/Blogs/Karol-Jarkovsky.aspx karolj@kentico.com

Agenda Overview Hierarchy XML Definition Properties Actions Q & A

Overview In Kentico CMS UI used for displaying list of items like: Users, Roles, Sites, Event log, etc., List view mode, Outdated documents, etc.,

asp:GridView Grid XML Def Data Filter Hierarchy UniGrid.ascx control located in ‘~/CMSAdminControls/UI/UniGrid’, Default folder for filters ‘~/CMSAdminControls/UI/UniGrid/Filters/’, Default folder for images ‘~/App_Themes/Default/Images/Design/Controls/UniGrid/Actions’ asp:GridView Grid XML Def OnAction OnExternal DataBound Data OnBefore DataReload Filter OnAfter DataReload

XML Definition <actions> - through its child <action> elements you add action(s) (Edit, Delete, Modify, etc.) for every row to the UniGrid causing action event fired that you can then handle in your code, <columns> - you use this section to define columns being displayed in the UniGrid, <objecttype /> - when specified UniGrid retrieves data from DB using information related to the given class name, <query> - when specified the query is executed to get the data, instead of explicitly providing DataSource or <objecttype /> info, <pager> - used to enable and define functionality of the built-in pager control, <options> - used to enable additional extensions of the UniGrid control

XML Definition - Actions The following attributes of the <actions> element are available: parameters- columns used as parameters for onclick attribute of child <action> nodes, showheader- indicates whether the header for action buttons cell should be displayed, width- width of actions cell in the UniGrid

XML Definition – Actions - Action The following attributes of the <action> element are available: caption- localization string for the action icon tooltip, commandargument- column whose value is passed as actionArgument parameter to the OnAction event handler where you can implement action logic using passed value, confirmation- localization string used for confirmation dialog displayed prior to the action, externalsourcename- this value is passed to the OnExternalDataBound event handler as sourceName parameter, icon- icon file used for action image button, located within ImageDirectoryPath name- value is passed to the OnAction event handler as actionName, onclick- JavaScript OnClick function for the action

XML Definition – Columns- Column The following attributes of the <column> element are available: allowsorting- indicates whether column is used for rows sorting, caption- localization string for the column header text, cssclass- CSS class used for the column, externalsourcename- name of the column passed as sourceName to the OnExternalDataBound event handler, href- if URL supplied the link is generated around the cell text, you can use macros to access parameters, icon- image inserted into the cell right after the cell text, needs to be located within ImageDirectoryPath, istext- used for generating ORDER BY statement in the query when sorting enabled for this field. Must be set for fields allowing sorting,

XML Definition – Columns- Column localize- indicates whether localization is enabled for cell data, parameters- column names used for href attribute accessible through the macro, source- name of the column used as a source field for the cell, if ##ALL## used the whole row is passed so you can generate cell text from within OnExternalDataBound event handler, sort- if you use ##ALL## for source attribute you use this attribute top specify single column that will be used for sorting, style- in-line style used for entire cell, visible- visibility of column, width- width of cell- relative or absolute, wrap- indicates whether the text is wrapped when longer then cell available width

XML Definition – Columns- Column- child elements The following child elements are allowed for the <column> element : tooltip – displays tooltip when hovering over cell text, in case image is defined for cell tooltip is assigned to the icon only, encode- indicates whether tooltip text should be encoded, externalsourcename- name identifying tooltip in OnExternalDataBound event, allows you to create complex tooltips, source- width- filter- element can be used to add given column to the UniGrid filter, format- allows you to create custom WHERE clause generated by default filter, {0} – column name, {1} – operator, {2}- value fro the text box, size- max length of text box, default value 1000 source- column used in default WHERE clause generated by filter, path- path to the custom ASCX control used as filter- CMSAbstractBaseFilterControl type- type of default filter to be created- text, checkbox, integer, double

XML Definition – Object type, Query & Parameter The following child elements are allowed for the <objecttype> element : columns- columns that should be retrieved from DB for given object type, name- code name of the object to retrieve- class name format, The following child elements are allowed for the <query> element : name- full code name of the system query to be executed to retrieve, The following child elements are allowed for the <parameter> element that itself is child of <query> parameter : name- name of the parameter defined in the query like @<parameter name>, type – type of the parameter- String, Int, Double, Bool value- parameter value,

XML Definition – Pager The following keys are allowed as child elements for the <pager> element : DefaultPageSize- default number of rows displayed on the UniGrid page, must be one of options defined by PageSizeOptions, PageSizeOptions- used to specify options in the page size drop-down list, multiple values separated by comma, ##ALL## macro used to define option that all rows should be displayed, ShowDirectPageControl- displays additional drop-down list displaying page numbers you can choose to go to particular page directly, ShowFirstLastButtons- first/last page buttons displayed, ShowPageSize- displays drop-down list with page size options, ShowPreviousNextButtons- displays previous/next page buttons, ShowPreviousNextPageGroup- displays buttons moving page navigation to the next group of page links, VisiblePages- page links group size

XML Definition – Options The following keys are allowed as child elements for the <options> element : DisplayFilter- displays default UniGrid filter (based on columns settings), if total number of data rows available is less than FilterLimit this settings is ignored, FilterLimit- minimum number of data rows displayed by UniGrid before filter is shown, default value comes from web.config file from the CMSDefaultListingFilterLimit key, ShowSelection- if true selection checkboxes are displayed in the very left column. It is useful for mass actions when selected items can be accessed in the code behind through the SelectedItems property of the UniGrid, SelectionColumn- name of the column whose value is going to be inserted into the array of selected items, ShowSortDirection- displays little arrow icon next to the header text indicating current sorting direction.

UniGrid – Properties The UniGrid exposes the properties following: Columns- columns loaded from the data source specified in DataSource, DataSource- source of the data (used when no query, no object type defined), DelayedReload- you can force UniGrid to postpone data loading if needed, the data won’t load unless you manually call ReloadData() UniGrid method, FilterDirectoryPath- default path for the custom filters, FilteredZeroRowsText- displayed when no data available when filter is applied, GridName- file path to the XML definition file, GridView- makes inner GridView control available outside UniGrid, SelectedItems- list of all items selected in the UniGrid using selection boxes

UniGrid – Events The UniGrid fires the following events: OnAction- event is fired for all action buttons defined in the XML definition file. The name of the action is passed to the event handler along with information on what row fired action, OnExternalDataBound- when UniGrid starts binding the data event is fired so you can influence the output for the specific column. Parameters passed to the event handler indicates what cell is being bound and what is the source data for this cell, OnBeforeDataReload- event is fired before data are loaded from ReloadData() method, OnAfterDataReload- event is fired after the data are load by ReloadData() method

Questions ?

Thank you Thank you!