Posted 2 December 2020, 1:44 am EST
Hi,
I use CellMaker to create hyperlink for a column.
But after loading column layout, hyperlink no longer appears in flexgird. Even I assign grid.columnLayout = grid.columnLayout
Thanks
Forums Home / ComponentOne / ASP.NET MVC Edition
Posted by: son on 2 December 2020, 1:44 am EST
Posted 2 December 2020, 1:44 am EST
Hi,
I use CellMaker to create hyperlink for a column.
But after loading column layout, hyperlink no longer appears in flexgird. Even I assign grid.columnLayout = grid.columnLayout
Thanks
Posted 2 December 2020, 12:55 pm EST
I have applied Load_Column_Layout to Custom_Cells
Demo URLs:
https://demos.componentone.com/ASPNET/MVCExplorer/FlexGrid/ColumnLayout
https://demos.componentone.com/ASPNET/MVCExplorer/FlexGrid/CustomCells
Posted 2 December 2020, 10:19 pm EST
Hi,
The cell templates are not serializable. That is why we cannot save them with the column layout because they cannot be converted to a string. When the columnLayout is loaded, all the previous columns are deleted and new ones are created. The new columns have no information about cell templates and therefore, the templates are no longer displayed.
To resolve this, you will need to set the cellTemplate property again.
The same issue will occur with DataMap also if you are using any.
Please refer to the sample attached for reference.
Regards,
Ashwin
Posted 8 December 2020, 2:10 am EST
Thanks for your example