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.
STstanleyj Syncfusion Team January 9, 2006 05:56 AM UTC
Hi,
A custom CellType can be created with a model class and a renderer class. The model class creates the renderer class and the renderer class handles the UI requirements of the cell. This sample in Syncfusion\Essential Studio\4.1.0.10\windows\Grid.Windows\Samples\In Depth\CellButtons can be refered.
After creating the custom celltype, it has to be registered through the CellModels.Add function
this.gridGroupingControl1.TableModel.CellModels.Add("OpenFileDialog", new EllipsisCellModel(this.gridGroupingControl1.TableModel));
Then CellType "OpenFileDialog" can be used.
The TableControlCellButtonClicked will be raised for the clicks on the GridCellButton. The OnClicked can also be overridden in the EllipsisCellButton class.
Note
1. The namespace that is used is to be replaced instead of "forums." in the EllipsisCellButton class
static EllipsisCellButton()
{
iconPainter = new GridIconPaint("forums.", typeof(EllipsisCellButton).Assembly);
}
2. Make the image file an embedded resource under the Build Action.
Best regards,
Stanley
PRprethiJanuary 9, 2006 06:43 AM UTC
Thanks .Its working
>Hi,
>
>A custom CellType can be created with a model class and a renderer class. The model class creates the renderer class and the renderer class handles the UI requirements of the cell. This sample in Syncfusion\Essential Studio\4.1.0.10\windows\Grid.Windows\Samples\In Depth\CellButtons can be refered.
>
>After creating the custom celltype, it has to be registered through the CellModels.Add function
>
>this.gridGroupingControl1.TableModel.CellModels.Add("OpenFileDialog", new EllipsisCellModel(this.gridGroupingControl1.TableModel));
>
>Then CellType "OpenFileDialog" can be used.
>
>The TableControlCellButtonClicked will be raised for the clicks on the GridCellButton. The OnClicked can also be overridden in the EllipsisCellButton class.
>
>
>Note
>
>1. The namespace that is used is to be replaced instead of "forums." in the EllipsisCellButton class
>
> static EllipsisCellButton()
> {
> iconPainter = new GridIconPaint("forums.", typeof(EllipsisCellButton).Assembly);
> }
>
>2. Make the image file an embedded resource under the Build Action.
>
>Best regards,
>Stanley