Back to Devexpress

ASPxDropDownEdit.DropDownWindowTemplate Property

aspnet-devexpress-dot-web-dot-aspxdropdownedit.md

latest2.9 KB
Original Source

ASPxDropDownEdit.DropDownWindowTemplate Property

Gets or sets a common template used for displaying the content of the drop down window.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(null)]
public virtual ITemplate DropDownWindowTemplate { get; set; }
vb
<DefaultValue(Nothing)>
Public Overridable Property DropDownWindowTemplate As ITemplate

Property Value

TypeDefaultDescription
ITemplatenull

An object supporting the System.Web.UI.ITemplate interface which contains the template used for displaying the content of the drop down window.

|

Remarks

This property is a wrapper of the DropDownEditProperties.DropDownWindowTemplate property.

Note

Once a template defined by this property is created, it is instantiated within a container represented by the TemplateContainerBase class. This class implements a set of properties which can be useful when designing a template and binding controls composing this template to data.

Example

This part of the Extended Lookup online demo illustrates how to use the ASPxDropDownEdit’s client AdjustDropDownWindow method.

javascript
function EndCallbackHandler(s, e) {
    DropDownEdit.AdjustDropDownWindow();
    ...
}
aspx
...
<dxe:ASPxDropDownEdit ID="DropDownEdit" runat="server" ClientInstanceName="DropDownEdit" ... >
    ...
        <DropDownWindowTemplate>
            <dxwgv:ASPxGridView ID="GridView" runat="server" ClientInstanceName="GridView" ... >
                ...
                <ClientSideEvents EndCallback="EndCallbackHandler" ... />
                ...
            </dxwgv:ASPxGridView>
        </DropDownWindowTemplate>
    ...
</dxe:ASPxDropDownEdit>
...

Online Example

View Example: How to get selected values from a list box on the server

See Also

ASPxDropDownEdit Class

ASPxDropDownEdit Members

DevExpress.Web Namespace