|
<SfDropDownButton CssClass="e-caret-hide" IconCss="e-ddb-icons e-profile" IconPosition="SplitButtonIconPosition.Left">
<PopupContent>
<div id="dropDownFilterExpenses">
<SfDropDownList TValue="string" TItem="GameFields" PopupHeight="230px" Placeholder="Select a game" DataSource="@Games">
<DropDownListFieldSettings Text="Text" Value="ID"></DropDownListFieldSettings>
<DropDownListEvents Opened="OpenPopup" OnClose="beforeClose" TValue="string"></DropDownListEvents>
</SfDropDownList>
</div>
</PopupContent>
<ChildContent>
<DropDownButtonEvents OnClose="popupClose"></DropDownButtonEvents>
</ChildContent>
</SfDropDownButton>
@code {
private bool ispopUp = false;
private void popupClose(BeforeOpenCloseMenuEventArgs args)
{
args.Cancel = this.ispopUp;
}
private void OpenPopup(PopupEventArgs args)
{
this.ispopUp = true;
}
private void beforeClose(PopupEventArgs args)
{
this.ispopUp = false;
}
}
<style>
.e-dropdown-popup.e-transparent div {
display: none;
}
</style> |
Hello,
Sorry for continuing on the same thread, but I am facing the case that I need almost the same behaviour, in my case I need to put a treeview inside the dropdown.
Thanks.
|
<SfDropDownButton CssClass="e-caret-hide" IconCss="e-ddb-icons e-profile" IconPosition="SplitButtonIconPosition.Left">
<PopupContent>
<div id="dropDownFilterExpenses">
<SfTreeView TValue="MailItem">
<TreeViewFieldsSettings TValue="MailItem" Id="Id" DataSource="@MyFolder" Text="FolderName" ParentID="ParentId" HasChildren="HasSubFolders" Expanded="Expanded"></TreeViewFieldsSettings>
</SfTreeView>
</div>
</PopupContent>
<ChildContent>
<DropDownButtonEvents OnClose="popupClose"></DropDownButtonEvents>
</ChildContent>
</SfDropDownButton>
<style>
.e-dropdown-popup .e-ul .e-list-parent {
border: none;
}
</style> |