Click or drag to resize
UniGridFunctions Class
Unigrid functions.
Inheritance Hierarchy
SystemObject
  CMS.UIControlsUniGridFunctions

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 10.0.0
Syntax
C#
public static class UniGridFunctions

The UniGridFunctions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClassName
Gets class display name by class ID
Public methodStatic memberColorBar
Returns colored div with background color specified by value parameter.
Public methodStatic memberColoredSpanAllowedExcluded(Object)
Returns colored 'allowed'/'excluded' span (default CSS classes) according to boolean value
Public methodStatic memberColoredSpanAllowedExcluded(Object, Boolean)
Returns colored 'allowed'/'excluded' span (default CSS classes) according to boolean value
Public methodStatic memberColoredSpanEnabledDisabled(Object)
Returns colored 'enabled'/'disabled' span (default CSS classes) according to boolean value
Public methodStatic memberColoredSpanEnabledDisabled(Object, Boolean)
Returns colored 'enabled'/'disabled' span (default CSS classes) according to boolean value
Public methodStatic memberColoredSpanIsNullYesNo
Returns colored 'yes' span (default CSS classes) if value is null or DBNull. Returns 'no' in other cases.
Public methodStatic memberColoredSpanMsg(String, Boolean)
Returns colored message (default CSS classes) according to boolean value (success/fail).
Public methodStatic memberColoredSpanMsg(String, Boolean, Boolean)
Returns colored message (default CSS classes) according to boolean value (success/fail).
Public methodStatic memberColoredSpanYes(Object)
Returns colored 'yes' span only (default CSS classes) according to boolean value.
Public methodStatic memberColoredSpanYes(Object, Boolean)
Returns colored 'yes' span only (default CSS classes) according to boolean value.
Public methodStatic memberColoredSpanYesNo(Object)
Returns colored 'yes'/'no' span (default CSS classes) according to boolean value
Public methodStatic memberColoredSpanYesNo(Object, Boolean)
Returns colored 'yes'/'no' span (default CSS classes) according to boolean value
Public methodStatic memberColoredSpanYesNoReversed(Object)
Returns colored 'yes'/'no' span (default CSS classes) according to boolean value reversed
Public methodStatic memberColoredSpanYesNoReversed(Object, Boolean)
Returns colored 'yes'/'no' span (default CSS classes) according to boolean value reversed
Public methodStatic memberColorLessSpanYesNo(Object)
Returns colorless 'yes'/'no' span according to boolean value
Public methodStatic memberColorLessSpanYesNo(Object, Boolean)
Returns colorless 'yes'/'no' span according to boolean value
Public methodStatic memberCountryName
Gets country name by country ID
Public methodStatic memberCultureDisplayName
Gets the culture display name.
Public methodStatic memberCultureName
Gets culture names by culture codes
Public methodStatic memberCultureNameWithFlag
Gets culture short names by culture codes with flag and tooltip.
Public methodStatic memberCultureShortName
Gets culture short name by culture code
Public methodStatic memberDate
Gets date from the DateTime value
Public methodStatic memberDocumentCultureFlag(DataRowView, Page)
Gets the document culture name with flag icon.
Public methodStatic memberDocumentCultureFlag(String, String, Page)
Gets the document culture name with flag icon.
Public methodStatic memberDocumentNameTooltip
Gets the document name tooltip (Document name (Document name path)).
Public methodStatic memberDocumentNameWithIcon
Gets document name with document type icon.
Public methodStatic memberFileSize
Transforms content size in bytes to human readable form.
Public methodStatic memberFormattedUserName
Gets formatted user name by user ID
Public methodStatic memberGetDataContainer
Gets the data container from the given parameter (grid view row or data row view)
Public methodStatic memberGetDataRowView(Object)
Gets the data row view from the given parameter (grid view row or data row view)
Public methodStatic memberGetDataRowView(DataControlFieldCell)
Gets whole row for given cell.
Public methodStatic memberGetEmptyObjectWithSiteID
Gets empty object with specified site ID. Usable to correct check permissions. Site ID is set from UIContext or use current site from SiteContext.
Public methodStatic memberHTMLEncode
HTML encodes text.
Public methodStatic memberIsPublished
Returns colored yes / no based on the published state of the document
Public methodStatic memberLink
Transforms URL to link. Link text is equal to input parameter.
Public methodStatic memberMailTo
Transforms email address to mailto: link. Link text is equal to input parameter. Return null for parameters not containing valid email address.
Public methodStatic memberObjectSupportsDestroy
Indicates if object supports destroy operation
Public methodStatic memberObjectTypeName
Gets type info nice name from it's object name. (E.g. cms.users -> Users)
Public methodStatic memberShowUniGridObjectContextMenu
Indicates if object context menu should be displayed in UniGrid.
Public methodStatic memberSiteName
Gets site name by Site ID
Public methodStatic memberSiteNameOrGlobal
Gets site name or (global) by site ID ID
Public methodStatic memberSpanMsg
Returns span (of specified CSS class) containing message.
Public methodStatic memberTime
Gets time from the DateTime value
Public methodStatic memberUserDateTime
Gets date time with user time zone applied without GMT shift information.
Public methodStatic memberUserDateTimeGMT
Gets date time with user time zone applied with GMT shift information.
Public methodStatic memberUserName
Gets user name by user ID
Public methodStatic memberUserTime
Gets time from the DateTime value
Public methodStatic memberUserTimeZoneName
Gets "long" string representation of used time zone (user, site or server) in form '(UTC+0:00) TimeZoneDisplayName'.
Top
See Also