Built-in Kentico CMS UI Controls

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

Built-in Kentico CMS UI Controls
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Chapter 3 Tables and Page Layout
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
1 Chapter 12 Working With Access 2000 on the Internet.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Using Multiple Forms. Creating a New Form ProjectAdd Windows Form.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Chapter 31 Visual Basic Controls A Form is a windows-style screen displayed by Visual Basic programs. In a form, a programmer can create objects in a form.
1 Agenda Overview Review Roles Lists Libraries Columns.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
ASP.NET Programming with C# and SQL Server First Edition
CST JavaScript Validating Form Data with JavaScript.
WORKING WITH MACROS CHAPTER 10 WORKING WITH MACROS.
Tutorial 7: Sub and Function Procedures1 Tutorial 7 Sub and Function Procedures.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Partners’ Webinar 10/25/2012 Karol Jarkovsky Solution Architect E-commerce Scenarios.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
IE 411/511: Visual Programming for Industrial Applications
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
ASP.NET Web Server Controls Basic Web Server Controls.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
S511 Session 7, IU-SLIS 1 DB Implementation: MS Access Forms.
Using Client-Side Scripts to Enhance Web Applications 1.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Working with option button, check box, and list box controls Visual Basic for Applications 13.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
DB Implementation: MS Access Forms. MS Access Forms  Purpose Data entry, editing, & viewing data in tables Forms are user-friendlier to end-users than.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Introduction to Views Stanford Drupal Camp April 6, 2013.
Reference: “ASP.NET 2.0 Illustrated” by Alex Homer and Dave Sussman. -ch3 illustrated book
Graphical Enablement In this presentation… –What is graphical enablement? –Introduction to newlook dialogs and tools used to graphical enable System i.
Table of Contents TopicSlide Administrator Login 2 Administrator Navigations 3 Managing AlternativeDr.com Blogs 4 Managing Dr. Lloyd May Blogs 5 Managing.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
Strictly Business Using “StrictlyFused” to Create an Extensible Knowledge Portal.
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.
24 Copyright © 2009, Oracle. All rights reserved. Building Views and Charts in Requests.
Wes Preston DEV 202. Audience: Info Workers, Dev A deeper dive into use-cases where client-side rendering (CSR) and SharePoint’s JS Link property can.
COMPUTER SKILLS MS-ACCESS. Introduction Access is a piece of software known as a database management system. At its most basic level, it can be used to.
DB Implementation: MS Access Forms. MS Access Forms: Purpose Data entry, editing, & viewing data in Tables Forms are user-friendlier to end-users than.
C# Programming: From Problem Analysis to Program Design1 Visual Studio Configuration C# Programming: From Problem Analysis to Program Design 4th Edition.
Chapter 5 Validating Form Data with JavaScript
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Creating Oracle Business Intelligence Interactive Dashboards
Creating LOVs and Editors
Building a User Interface with Forms
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
DB Implementation: MS Access Forms
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
DB Implementation: MS Access Forms
Presentation transcript:

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

Agenda Overview Hierarchy Members Custom filter development Q & A

Overview In Kentico CMS UI used to make a selection from a list of objects: Add roles, Add users, Add child types, etc.

cms:UniGrid / asp:TextBox / cms:LocalizedButton / asp:DropDownList Hierarchy UniSelector.ascx control located in ~/CMSAdminControls/UI/UniSelector/ cms:UniGrid / asp:TextBox / cms:LocalizedButton / asp:DropDownList Grid XML Def OnItemsSelected ObjectType OnSelectionChanged Selection dialog Filter

Members Name Description AdditionalColumns Names of columns that should be loaded with the objects of the specified data class. AllowAll If set ‘(all)’ is displayed as option in the drop-down list in the SingleDropDownList SelectionMode. AllowEditTextBox Indicates whether the value of the TextBox displayed in the SingleTextBox or the MultipleTextBox SelectionMode can be manually edited. AllowEmpty If enabled, the ‘(none)’ value is available in the SingleDropDownList SelectionMode and the Clear button is displayed in SingleTextBox and MultipleTextBox mode.   When an empty value is used, the Value of the control is 0 or an empty string. NoneRecordValue Value returned when the ‘(none)’ item is selected in SingleDropDownList SelectionMode.

Members Name Description AllRecordValue Contains the value used when the ‘(all)’ item is selected in SingleDropDownList SelectionMode. The default value is -1. ButtonImage If specified, the selection button is displayed as a LinkButton using this image if the SelectionMode is SingleButton or MultipleButton. DialogWindowHeight/Width/Name Used to set default height and width of modal selection dialog. You can assign unique name to the modal dialog in case multiple selectors are used on the same page.

Members Name Description DisplayNameFormat Used to modify display format of items in the selection dialog list. Macro expressions in format {%ColumnName%} must be used here. The columns required by the used macros are loaded automatically as long as they belong to the table accessed by executed query. EditItemPageUrl If URL specified an edit button that links to the specified URL is displayed. Only available for SingleTextBox and SingleDropDownList SelectionMode. EditWindowName Used to specify unique name of the modal edit dialog. EnabledColumnName If set to column that is of BOOL type assigns DropDownItemDisabled CSS class to specific options. Works with SingleDropDownList SelectionMode.

Members Name Description FilterControl Path to the filter control (inheriting from CMSAbstractBaseFilterControl class). It will be used for custom filtering of items displayed in the modal selection dialog. GridName Path to the XML configuration file of the UniGrid control used to display  and select objects in Multiple SelectionMode. IconPath Path to icon displayed in the title of modal selection dialog. ItemsPerPage Used to set the maximum amount of displayed selected items per page in Multiple SelectionMode. LocalizeItems When enabled localization macros are resolved in the modal selection dialog.

Members Name Description MaxDisplayedItems Maximum number of objects displayed by the drop-down list in SingleDropDownList SelectionMode. Default value is 25. NewItemPageUrl Can be used to specify the URL of a custom page that handles the creation of new objects. If a value is entered, a new button that links to the specified URL is displayed. Only available for SingleTextBox SelectionMode. ObjectType Specifies the data class of the objects to be selected using object class name (e.g. ‘cms.user’, ‘cms.role’, etc.) OrderBy Contains the ORDERBY clause used to determine the order of objects. It also affects the order in the modal selection dialog. RemoveConfirmation Used to specify the text displayed in the confirmation message when removing items from list. Entering an empty string disables the confirmation message.

Members Name Description ResourcePrefix Prefix used in the full names of resource strings (keys) containing the labels of the various interface elements displayed by the UniSelector. This can be used to assign custom strings to the control. Used format is <res prefix>.<string name> String names: additems - text caption of the add items button used to open the selection window in Multiple mode, all - name of the list item representing the selection of all available objects in SingleDropDownList mode, clear - text caption of the clear button used in TextBox modes, edit - text caption of the edit button used in SingleTextBox and SingleDropDownList mode,

Members Name Description empty - name of the list item representing an empty selection in SingleDropDownList mode, itemname - header text of the column containing the names of objects in the selection window and the UniGrid displaying selected objects in Multiple mode, moreitems - name of the list item that opens the selection window if the maximum amount of list items is exceeded in SingleDropDownList mode, new - text caption of the new button used in SingleTextBox mode, newitem - name of the list item that opens the new item page in SingleDropDownList mode, nodata - text message displayed in Multiple mode if no objects are selected and the ZeroRowsText property is not defined, pleaseselectitem - text of the JavaScript alert displayed when the edit button is used when no object is selected,

Members Name Description removeall - text caption of the button used to deselect all objects in Multiple mode, removeselected - text caption of the button used to deselect the specified objects in Multiple mode, select - text caption of the select button used to open the selection window in TextBox and Button modes, selectitem - text of the labels associated with the action elements used by the UniSelector; this is also used to set the title of the selection window ReturnColumnName Name of the column used for the values of selected objects. If empty, the object ID column is used.   The column must be a unique identifier for the given object type.

Members Name Description The following modes are available: SelectionMode The following modes are available: SingleTextBox - button that allows the selection of one object and a TextBox displaying the selected value, MultipleTextBox - button that allows the selection of multiple objects and a TextBox displaying the selected values, SingleDropDownList - displays a drop‑down list containing objects. If necessary, the selection window can be opened by selecting ‘(more items ...)’ from the list, Multiple - consists of a UniGrid control displaying the selected objects and buttons to add or remove them, SingleButton - button that allows the selection of one object, MultipleButton - button that allows the selection of multiple objects

Members Name Description SpecialFields Used to specify two dimensional string array that contains custom items to be displayed in SingleDropDownList SelectionMode. The first value is the name of the item, the second represents the value of that item when it is selected. UseDefaultNameFilter Indicates whether the default name filter should be used in the selection dialog. Default filter is using DisplayNameColumn information of info object. Value Used to get or set the selected value of the control. Return column specified by the ReturnColumnName property. ValuesSeparator The character used to separate selected values in the case of multiple selection. A semicolon (" ; ") is used by default.

Members Name Description WhereCondition You can explicitly filter out items from the list of objects available for selection. ZeroRowsText Can be used to specify the text displayed when no objects are selected in Multiple SelectionMode.

Members Event Description OnItemsSelected Occurs when an object or objects are selected in SingleButton and MultipleButton Selection Mode. This event is not raised in other modes. OnSelectionChanged Fired when the set of selected objects is changed. The event is not raised in SingleButton or MultipleButton SelectionMode.   This event is usually used to perform tasks with selected objects in Multiple mode without the need for a confirmation button.

Custom filter development Create custom ASCX control with all server controls you need, Let the control inherit from CMSAbstractBaseFilterControl, Override WhereCondition property of the base class, Implement generating WHERE condition in this property- UniSelector will access this value before selection dialog loads content, Set FilterControl property for UniSelector to point to your custom filter ASCX

Questions ?

Thank you!