1
Vote

Error saving settings if web part not conncted

description

If the filter is not connected to a list view and you save the settings an error occurs. In the FieldSettingsToolPart ApplyChanges method, you need to check that _xmlField has been created:
public override void ApplyChanges()
        {
            base.ApplyChanges();
            if (_xmlField != null)
            { 
                WebPart.FilterDefinitionString = _xmlField.Value;
            }
        }

comments