Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
850
Saved filter not being applied
posted

Hi, I have a xamdatagrid which saves column layout and filters. The layout is restored but the saved filters are ignored.

Field I want filtered

                            <igDP:Field Name="VolumeNumber"
                                        Label="Volume"
                                        Width="60"
                                        HorizontalContentAlignment="Center">
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings>
                                        <igDP:FieldSettings.CellValuePresenterStyle>
                                            <Style TargetType="{x:Type igDP:CellValuePresenter}">
                                                <Setter Property="Foreground"
                                                        Value="{Binding Path=Cells[VolumeNumber].Value, Converter={StaticResource MyValueToColorConverter}}">
                                                </Setter>
                                            </Style>
                                        </igDP:FieldSettings.CellValuePresenterStyle>
                                    </igDP:FieldSettings>
                                </igDP:Field.Settings>
                            </igDP:Field>

Preferences loading code

        private void FillList()
        {
            StatusList = new RequestStatus();
            RequestCollection = new VolumeRequestCollection(uc.FacilityGUID, null);
            string gridLayout = DataAccess.GetGridPreferences(uc.UserIDCode, uc.FacilityGUID, "requests");
            if(!string.IsNullOrEmpty(gridLayout))
                dgRequests.LoadCustomizations(gridLayout);
        }

Saved filter

			<recordFilters>
				<RecordFilter FieldName="VolumeNumber">
					<ConditionGroup LogicalOperator="And">
						<ComparisonCondition Operator="NotEquals" Value="0" />
					</ConditionGroup>
				</RecordFilter>
			</recordFilters>

Thanks

Peter