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''m trying to create a drop down user control from a cell in a virtual grid. I''ve based my cell model and renderer on the model and renderer from the DropDownFormAndUserControl sample.
However, the overriden InitializeDropDownContainer() method is never being called. I''ve registered the model with the parent grid in its constructor (added to CellModels) and I''m setting the CellType and CellValue for the cell I want to drop down in the QueryCellInfo method.
The cell draws a button that I can click, but nothing seems to happen...
Do you have any ideas where the problem may lie?
Thanks!
ADAdministrator Syncfusion Team June 7, 2005 06:23 PM UTC
Does the cell have a style.Enabled = false for some reason? If so, this would cause a problem.
You might place stops in your renderer''s / model''s constructor just to see if they are being hit as expected.
If you can upload a sample project showing the problem, maybe we can spot it here.
MWMike WoolleyJune 8, 2005 09:46 AM UTC
Solved it! My grid was overriding OnCurrentCellActivating() and setting the column index to 0. This causes the call to HasCurrentCellAt(r, c) in GridDropDownCellImp to fail...