The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a cell that is a DropDownUserCell. How can I at runtime enable and disable this control. In the disabled state, I do not want the dialog to popup or show.
I tried cancel the event in...
TableControlCurrentCellShowingDropDown
but that doesn't work becuase I guess the drop down isn't a standard combobox.
HAhaneefm Syncfusion Team May 15, 2007 11:49 PM UTC
Hi James,
You can override the DropDownContainerShowingDropDown method of the DropDownUserCellRenderer class and call RaiseCurrentCellShowingDropDown method that allows for an event that might cancel the drop or set its size. Below is a code snippet.
public override void DropDownContainerShowingDropDown(object sender, CancelEventArgs e) { GridCurrentCell cc = this.Grid.CurrentCell;
Size size = ddUser.Size; GridCurrentCellShowingDropDownEventArgs ce = new GridCurrentCellShowingDropDownEventArgs(size); Grid.RaiseCurrentCellShowingDropDown(ce); if (ce.Cancel) { e.Cancel = true; return; } ddUser.Size = ce.Size;