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 my own user control that i would like to show up in a cell when the user clicks on that cell. (just like the regular combobox behavior)
1. is this possible? 2. how do i go about associating my control into the grid 3. Is there any example code that shows this happening 4. Does this work with both usercontrols & custom controls?
NOTE: My userControl just derives from UserControl and is a combination of a dropdownbox and a button.
ADAdministrator Syncfusion Team November 10, 2006 05:54 PM UTC
If you just want your UserControl to appear in a single cell of a GridControl, then you can try code like: grid[2,3].CellType = "Control"; grid[2,3].Control = instanceOfYourUserControl;
If you want it to appear in many cells, then you can derive a cell control using your own CellModel and CellRender classes. Take a look at the CalendarCells sample that shows how to derive a celltype. There is alo a tutorial in teh UserGuide on deriving your own cell type.
ADAdministrator Syncfusion Team November 10, 2006 07:50 PM UTC
i want it to be all the controls in a column but i only want it to show when i click on the cell . . which option is more appropriate
thks, ak
>If you just want your UserControl to appear in a single cell of a GridControl, then you can try code like: grid[2,3].CellType = "Control"; grid[2,3].Control = instanceOfYourUserControl;
If you want it to appear in many cells, then you can derive a cell control using your own CellModel and CellRender classes. Take a look at the CalendarCells sample that shows how to derive a celltype. There is alo a tutorial in teh UserGuide on deriving your own cell type.
ADAdministrator Syncfusion Team November 10, 2006 07:53 PM UTC
also just to note, i am using a virtual grid . .
>i want it to be all the controls in a column but i only want it to show when i click on the cell . . which option is more appropriate
thks, ak
>If you just want your UserControl to appear in a single cell of a GridControl, then you can try code like: grid[2,3].CellType = "Control"; grid[2,3].Control = instanceOfYourUserControl;
If you want it to appear in many cells, then you can derive a cell control using your own CellModel and CellRender classes. Take a look at the CalendarCells sample that shows how to derive a celltype. There is alo a tutorial in teh UserGuide on deriving your own cell type.