Thanks
Jay.
I did a bit
more testing and found that if I create a custom SerializationController and wrap the RestoreDetailsViewDefinition() method in an exception handler, then the rest of the grid seems to
deserialize correctly. So the bug / need for exception handling is
something to do with what’s happening in that method.
public class
CustomSfGridSerializer
: SerializationController
{
private static Logger _logger =
LogManager.GetCurrentClassLogger();
public CustomSfGridSerializer(SfDataGrid
dataGrid)
: base(dataGrid)
{
}
protected override void RestoreDetailsViewDefinition(SerializableDataGrid serializableDataGrid,
DeserializationOptions options)
{
try
{
base.RestoreDetailsViewDefinition(serializableDataGrid,
options);
}
catch (Exception e)
{
_logger.Info("CustomSfGridSerializer caught and
handled an error that should have been dealt with by Syncfusion");
}
}
}
Regards,
Phil