Click or drag to resize
QueryUniView Class
QueryUniView control.
Inheritance Hierarchy

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 9.0.0
Syntax
C#
public class QueryUniView : BasicUniView, 
	ICMSQueryProperties, ICMSBaseProperties

The QueryUniView type exposes the following members.

Constructors
  NameDescription
Public methodQueryUniView
Constructor.
Top
Fields
  NameDescription
Protected fieldmDataLoaded
Indicates whether data were loaded.
(Inherited from BasicUniView.)
Protected fieldmDataPager
Data pager.
Protected fieldmDataSource
Query data source.
Protected fieldmExternalPager
External pager control?
Protected fieldmFilterControl
Filter control.
Protected fieldmFilterName
Filter name.
Protected fieldmItemSeparator
ItemSeparator variable.
Protected fieldmOnBeforeInitFired
True if the on before init was fired.
(Inherited from BasicUniView.)
Protected fieldmPageSizeSet
Indicates if page size property is set.
Protected fieldmRelatedData
Custom data connected to the object.
(Inherited from BasicUniView.)
Protected fieldmRelatedDataLoaded
Related data is loaded.
(Inherited from BasicUniView.)
Protected fieldmUniPager
Current unipager.
Protected fieldNoData
When DataSource is empty NoData = true.
Protected fielduseDataSourceControl
Indicates whether the viewer should obtain data source from the referenced control provided by the value of DataSourceControl property.
(Inherited from BasicUniView.)
Top
Properties
  NameDescription
Public propertyAlternatingItemTemplate
Alternating item template.
(Inherited from UniView.)
Public propertyAlternatingRange
Item / AlternatingItem template changing interval
(Inherited from UniView.)
Public propertyAlternatingStartPosition
Alternating start position.
(Inherited from UniView.)
Public propertyAlternatingTransformationName
Transformation name in format application.class.transformation applied to alternating items.
Public propertyCacheDependencies
Cache dependencies, each cache dependency on a new line.
Public propertyCacheItemName
Name of the cache item the control will use.
Public propertyCacheMinutes
Number of minutes the retrieved content is cached for. Zero indicates that the content will not be cached.
Public propertyColumns
Gets or sets the columns to be retrieved from database.
Public propertyControlContext
Control context.
Public propertyDataBindByDefault
Indicates whether data binding should be performed by default.
Public propertyDataSource
Object from which data-bound control retrieves its list of data item.
(Inherited from BasicUniView.)
Public propertyDataSourceControl
Control with data source.
(Inherited from BasicUniView.)
Public propertyDataSourceName
Gets or sets name of source.
(Inherited from BasicUniView.)
Protected propertyDefaultDataSource
Default data source to use if no external is provided
(Overrides BasicUniViewDefaultDataSource.)
Public propertyDelayedLoading
Indicates whether the data should be loaded to the load event instead of default init event.
Public propertyEnablePaging
Gets or sets the value that indicates whether paging is enabled.
Public propertyFilterControl
Filter control.
Public propertyFilterName
Gets or Set filter name.
Public propertyFirstItemTemplate
First item template.
(Inherited from UniView.)
Public propertyFirstTransformationName
Transformation name in format application.class.transformation applied to footer item.
Public propertyFooterTemplate
Footer item template.
(Inherited from UniView.)
Public propertyFooterTransformationName
Transformation name in format application.class.transformation applied to footer item.
Public propertyForceCacheMinutes
Gets or sets the value that indicates whether cache minutes must be set manually (Cache minutes value is independent on view mode and cache settings)
Public propertyHeaderTemplate
Header item template.
(Inherited from UniView.)
Public propertyHeaderTransformationName
Transformation name in format application.class.transformation applied to header item.
Public propertyHideControlForZeroRows
Hides the control when no data is loaded. Default value is False.
(Inherited from BasicUniView.)
Public propertyHideHeaderAndFooterForSingleItem
Hide Outer data (header, footer) for single item.
(Inherited from UniView.)
Public propertyHierarchicalDisplayMode
Gets or sets the display mode for hierarchical datasource.
(Inherited from UniView.)
Public propertyHierarchicalTransformationName
Transformation name for hierarchical transformation collection in format application.class.transformation.
Public propertyIDColumnName
Gets or sets the name of the ID column.
Public propertyIsSelected
Gets or sets the value that indicates whether current datasource contains selected item.
Public propertyItemSeparatorValue
Item separator between displayed records.
Public propertyItemTemplate
Default item template.
(Inherited from UniView.)
Public propertyLastItemTemplate
Last item template.
(Inherited from UniView.)
Public propertyLastTransformationName
Transformation name in format application.class.transformation applied to last item.
Public propertyLevelColumnName
Gets or sets the name of the level column.
Public propertyLoadHierarchicalData
Gets or sets the value that indictes whether data should be binded in default format or changes to hierarchical grouped dataset
Public propertyLoadPagesIndividually
If true, each page is loaded individually in case of paging.
Public propertyOrderBy
Property to set and get the OrderBy.
Public propertyOuterData
Data generated in header and footer.
(Inherited from UniView.)
Public propertyPageableControl
Gets or sets the encapsulated control that implements IUniPageable interface.
(Inherited from BasicUniView.)
Public propertyPagerControl
Gets the current unipager instance.
Public propertyPagerCurrentPageTemplate
Current page template.
Public propertyPagerDataItem
Gets or sets the IUniPageable.PagerDataItem value.
(Inherited from UniView.)
Public propertyPagerDirectPageTemplate
Direct page control template.
Public propertyPagerFirstPageTemplate
First page template.
Public propertyPagerForceNumberOfResults
Gets or sets the number of result. Enables proceed "fake" datasets, where number of results in the dataset is not correspondent to the real number of results This property must be equal -1 if should be disabled
(Inherited from UniView.)
Public propertyPagerLastPageTemplate
Last page template.
Public propertyPagerLayoutTemplate
Layout template.
Public propertyPagerNextGroupTemplate
Next group template.
Public propertyPagerNextPageTemplate
Next page template.
Public propertyPagerPageNumbersSeparatorTemplate
Page numbers separator template.
Public propertyPagerPageNumbersTemplate
Page numbers template.
Public propertyPagerPosition
Pager position.
Public propertyPagerPreviousGroupTemplate
Previous group template.
Public propertyPagerPreviousPageTemplate
Previous page template.
Public propertyPageSize
Number of items per page.
Public propertyParentControl
Parent control.
Public propertyParentIDColumnName
Gets or sets the name of the parent ID column.
Public propertyQueryName
Query name in format application.class.query.
Public propertyQueryParameters
Query parameters.
Public propertyRelatedData
Custom data connected to the object, if not set, returns the Related data of the nearest IDataControl.
(Inherited from BasicUniView.)
Public propertyRelationColumnID
Column from which specifies value of current level (for example parent document id).
(Inherited from UniView.)
Public propertyResetScrollPositionOnPostBack
Gets or sets the value that indicates whether scroll position should be cleared after post back paging
Public propertyResolveDynamicControls
Gets or sets the value that indicates whether dynamic controls should be resolved
(Inherited from BasicUniView.)
Public propertySelectedColumns
Columns to select.
Public propertySelectedDatabaseColumnName
Gets or sets columns name by which the item is selected.
Public propertySelectedItemColumnName
Gets or sets the column name which should be used for selected item comparison.
(Inherited from UniView.)
Public propertySelectedItemValue
Gets or sets the value which indicates selected item.
(Inherited from UniView.)
Public propertySelectedQueryStringKeyName
Gets or sets query string key name. Presence of the key in query string indicates, that some item should be selected. The item is determined by query string value.
Public propertySelectedValidationType
Gets or sets validation type for query string value which determines selected item. Options are int, guid and string.
Public propertySelectTopN
Top N rows to select.
Public propertySeparatorTemplate
Separator item template.
(Inherited from UniView.)
Public propertySeparatorTransformationName
Transformation name in format application.class.transformation applied to footer item.
Public propertyShowDeleteButton
Show Delete button.
Public propertyShowEditButton
Show Edit and Delete buttons.
Public propertyShowEditDeleteButtons
Show Edit and Delete buttons.
Public propertySingleItemTemplate
Single item template.
(Inherited from UniView.)
Public propertySingleTransformationName
Transformation name in format application.class.transformation applied to single item.
Public propertySiteName
Gets or sets the sitename, this property has no effect in this control.
Public propertyStopProcessing
Stop processing
Public propertyTopN
Select top N rows.
Public propertyTransformationName
Transformation name in format application.class.transformation.
Public propertyTransformations
Gets or sets the transformation collection.
(Inherited from UniView.)
Public propertyUniPagerControl
Pager control.
(Inherited from UniView.)
Public propertyUseHierarchicalOrder
Gets or sets the value that indicates whether default hierarchical order value should be used. The order is used only if LoadHierarchicalData is set to true. Default order value is "NodeLevel, NodeOrder". Value of OrderBy property is joined at the end of the order by expression
Public propertyUseNearestItemForHeaderAndFooter
Gets or sets the value that indicates whether data from nearest data item should be used for header or footer item. This value is ignored if OuterData property is set.
(Inherited from UniView.)
Public propertyWhereCondition
Property to set and get the WhereCondition.
Public propertyZeroRowsText
Text to be shown when the control is hidden by HideControlForZeroRows.
(Inherited from BasicUniView.)
Top
Methods
  NameDescription
Protected methodBoundPagerToDataSource
Bound pager to the external external DataSource
(Inherited from BasicUniView.)
Public methodClearCache
Clears the cached items.
Protected methodCreateHierarchicalItem
Creates new UniView item and initialize object with selected template.
(Inherited from UniView.)
Protected methodCreateChildControls
Creates child controls.
(Inherited from UniView.)
Protected methodCreateItem
Creates new UniView item and initialize object with selected template.
(Inherited from UniView.)
Public methodDataBind
Binds a data source to the invoked server control and all its child controls.
(Overrides BaseDataBoundControlDataBind.)
Protected methodEnsurePager
Creates instance of unipager and bind this pager to the current control.
Protected methodGenerateContent
Default method to the content generating.
(Inherited from UniView.)
Protected methodGenerateInnerHierarchicalContent
Inner hierarchical content generating.
(Inherited from UniView.)
Protected methodGenerateSeparateHierarchicalContent
Separate hierarchical content generating.
(Inherited from UniView.)
Protected methodGetDataItemValue
Returns value from specified data item object.
(Inherited from UniView.)
Public methodGetDefaultCacheDependencies
Gets the default cache dependencies for the data source.
Protected methodGetItemsCount
Try to get items count from IEnumerable object.
(Inherited from UniView.)
Protected methodGetItemType
Returns item type based on current index and item count.
(Inherited from UniView.)
Protected methodGetTemplate
Returns default item template if selected template is empty.
(Inherited from UniView.)
Public methodHasData
Indicates if data source contains data.
(Inherited from BasicUniView.)
Protected methodInitControl
Ensures default data binding
(Overrides BasicUniViewInitControl(Boolean).)
Protected methodObjectToDataRowView
Converts object (DataSet, DataTable, DataRow) to DataRowView.
(Inherited from UniView.)
Protected methodOnInit
Init event handler.
(Inherited from BasicUniView.)
Protected methodOnLoad
OnLoad event handler
(Inherited from BasicUniView.)
Protected methodProcessItem
Add UniView item to the controls collection and bind it.
(Inherited from UniView.)
Protected methodRaiseOnBeforeInit
Raises the OnBeforeInit event.
(Inherited from BasicUniView.)
Public methodReBind
Evokes control databind.
(Inherited from UniView.)
Public methodReleaseContext
Releases the web part context.
Public methodReloadData
Loads data from the according to the current values of properties.
(Overrides BasicUniViewReloadData(Boolean).)
Protected methodRemovedControl
Called after a child control is removed from controls collections. Ensures unipager for current control
(Overrides ControlRemovedControl(Control).)
Protected methodRender
Render event handler.
(Overrides BasicUniViewRender(HtmlTextWriter).)
Public methodSetContext
Sets the web part context.
Top
Extension Methods
  NameDescription
Public Extension MethodAddCssClass
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodCallHandled
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page. Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.)
Public Extension MethodGetCssClasses
Returns all CSS classes of control.
(Defined by ControlsExtensions.)
Public Extension MethodGetRenderedHTML
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by ControlsExtensions.)
Public Extension MethodHasCssClass
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodRemoveCssClass
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodSetCssClasses
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.)
Top
Events
  NameDescription
Public eventOnBeforeInit
On before init handler.
(Inherited from BasicUniView.)
Public eventOnItemCreated
Occurs when an item is created in the UniView control.
(Inherited from UniView.)
Public eventOnItemDataBound
Occurs when the control bind UniView item.
(Inherited from UniView.)
Public eventOnPageBinding
Occurs when the control bind data.
(Inherited from UniView.)
Public eventOnPageChanged
Occurs when the pager change the page and current mode is postback => reload data
(Inherited from UniView.)
Top
See Also