Hi Thanvir,
1, Is there anyway I can create the MyModel directly inside each of my cell models
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Please refer to the attached sample in this forum.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=39135It has has two samples. First sample demonstrate a way to apply the CustomProperty to all the cells in the grid through the static constructor of the derived GridStyleInfoCustomProperties class. Second sample demostrate a way to have a custom property which is used by a derived CellModel and CellRenderer to customize the cell.
2, how do I serialize this customeproperty when I serialize the datagrid?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>
The sample refered above will also serialize the custom property automatically when you serialize the grid, since the custom property will get stored on the grid's internal memory itself.
Regards,
Saravanan