aspnet-devexpress-dot-web-dot-aspxdropdownedit.md
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
[DefaultValue(null)]
public virtual ITemplate DropDownWindowTemplate { get; set; }
<DefaultValue(Nothing)>
Public Overridable Property DropDownWindowTemplate As ITemplate
| Type | Default | Description |
|---|---|---|
| ITemplate | null |
An object supporting the System.Web.UI.ITemplate interface which contains the template used for displaying the content of the drop down window.
|
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.
This part of the Extended Lookup online demo illustrates how to use the ASPxDropDownEdit’s client AdjustDropDownWindow method.
function EndCallbackHandler(s, e) {
DropDownEdit.AdjustDropDownWindow();
...
}
...
<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>
...
View Example: How to get selected values from a list box on the server
See Also