Back to Devexpress

DxDateEdit<T>.ShowDropDownButton Property

blazor-devexpress-dot-blazor-dot-dxdateedit-1-1267841f.md

latest2.0 KB
Original Source

DxDateEdit<T>.ShowDropDownButton Property

Specifies whether the Date Edit displays the built-in button that invokes a calendar.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool ShowDropDownButton { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to display the drop-down button; otherwise, false.

|

Remarks

The DxDateEdit<T> component shows the built-in drop-down button that invokes a calendar. You can set the ShowDropDownButton property to false to hide this button.

You can also add a custom drop-down button to the Date Edit:

  1. Add the <Buttons></Buttons> tag to the component’s markup to define the Buttons collection.
  2. Add a DxDateEditDropDownButton object.
  3. Set up button properties to customize the button:

The following code snippet hides the built-in drop-down button, adds a new drop-down button, and specifies its position.

razor
<DxDateEdit Date="DateTime.Today" ShowDropDownButton=false>
    <Buttons>
        <DxDateEditDropDownButton Position="EditorButtonPosition.Left"/>
    </Buttons>
</DxDateEdit>

See Also

DxDateEdit<T> Class

DxDateEdit<T> Members

DevExpress.Blazor Namespace