Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChooseAvailableItemPage Class

A base class for classes that allow users to select an available item.

#Declaration

TypeScript
export class ChooseAvailableItemPage extends WizardPageBase

#constructor(items)

Creates a new instance of the ChooseAvailableItemPage class with the specified settings.

#Declaration

TypeScript
constructor(
    items: ko.Subscribable<any[]>,
    canCreateNew?: boolean,
    _getJsonConnectionsCallback?: () => JQueryPromise<DevExpress.Analytics.Wizard.IConnectionStringDefinition[]>
)

#Parameters

Name Type Description
items Subscribable<any[]>

The collection of items. This value is assigned to the items property.

canCreateNew boolean

Specifies whether it is possible to create new items. This value is assigned to the canCreateNew property.

_getJsonConnectionsCallback () => JQueryPromise<IConnectionStringDefinition[]>

#Properties

#canCreateNew Property

Specifies whether it is possible to create new items.

#Declaration

TypeScript
canCreateNew: ko.Observable<boolean>

#Property Value

Type Description
Observable<boolean>

true, if it possible to create new items; otherwise, false.

#Remarks

This property specifies whether to display a radio group with a choice (to select an available item or create a new item).

#items Property

Specifies the collection of items available on a wizard page.

#Declaration

TypeScript
items: ko.Subscribable<any[]>

#Property Value

Type Description
Subscribable<any[]>

The collection of available items.

#selectedItems Property

Specifies the selected items.

#Declaration

TypeScript
selectedItems: ko.ObservableArray<DevExpress.Analytics.Internal.IDataSourceInfo>

#Property Value

Type Description
ObservableArray<IDataSourceInfo>

Selected items.

#Methods

#canNext Method

Specifies whether the next section is available.

#Declaration

TypeScript
canNext(): boolean

#Returns

Type Description
boolean

true, if the next section is available; otherwise, false.

#initialize(state) Method

Initializes the page with the specified settings.

#Declaration

TypeScript
initialize(
    state: any
): any

#Parameters

Name Type Description
state any

A page’s local state to initialize.

#Returns

Type
any

#onDblClick Method

#Declaration

TypeScript
onDblClick(): void