NULL Reference: collection in mscorlib

2 posts, 0 answers
  1. David
    David avatar
    20 posts
    Member since:
    Jan 2012

    Posted 06 Aug 2015 Link to this post

    Hi guys,

     we're using Telerik for WPF in Version 2014.1.331.45.

    Our customers are facing sporadically errors, while the datagrid will be updated.

    Do you have an idea for following stacktrace?

     

    Der Wert darf nicht NULL sein. Parametername: collection in mscorlib

    bei System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
    bei Telerik.Windows.Automation.Peers.GridViewRowAutomationPeer.GetChildrenCore()
    bei System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
    bei System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
    bei System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
    bei System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
    bei System.Windows.Automation.Peers.AutomationPeer.UpdatePeer(Object arg)
    bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

     

    Unfortunately, we cannot create this error inhouse. Maybe you'll have a possible solution.

     

    Here the xaml of the grid:

    <dmui:DMGrid ControlId ="1F404357-E4E0-43E9-8329-C1A6E51AA134"
                            RowStyleSelector="{StaticResource gridrowstyleselector}"
                            Grid.Row="1"
                            Grid.ColumnSpan="2"
                            x:Name="gridMedikation"
                            Height="262"
                            HorizontalAlignment="Stretch"
                            HorizontalContentAlignment="Stretch"
                            EnableColumnVirtualization="True"
                            IsReadOnly="True"
                            RowIndicatorVisibility="Visible"
                            RowDetailsVisibilityMode="VisibleWhenSelected"
                            IsSynchronizedWithCurrentItem="True"
                            FrozenColumnCount="3"
                            SelectedItem="{Binding SelectMedikation, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                            ItemsSource="{Binding Klientenmedikation, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                            behaviour:GridScrollBehaviour.GridDataEdited="{Binding IsGridDataEdited}"
                                     Initialized="GridMedikation_OnInitialized">
                            <i:Interaction.Triggers>
                                <i:EventTrigger EventName="MouseDoubleClick">
                                    <i:InvokeCommandAction Command="{Binding EditMedikamentCommand}" CommandParameter="{Binding SelectedItem, RelativeSource={RelativeSource AncestorType=dmui:DMGrid}}" />
                                </i:EventTrigger>
                            </i:Interaction.Triggers>
                            <!-- Context-Menü -->
                            <dmui:DMContextMenu.ContextMenu>
                                <dmui:DMContextMenu>
                                    <!-- Neu -->
                                    <dmui:DMMenuItem
                                            Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_NEU}}"
                                            Command="{Binding AddMedikamentCommand}">
                                        <dmui:DMMenuItem.Icon>
                                            <Image Source="{StaticResource newicon}" Stretch="Uniform"/>
                                        </dmui:DMMenuItem.Icon>
                                    </dmui:DMMenuItem>
                                    <!-- Absetzen -->
                                    <dmui:DMMenuItem
                                            Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_ABSETZEN}}"
                                            Command="{Binding AbsetzenMedikamentCommand}"
                                            CommandParameter="{Binding SelectMedikation}"
                                            IsEnabled="{Binding AbgesetzenMedikationEnabled}">
                                        <dmui:DMMenuItem.Icon>
                                            <Image Source="{StaticResource MedikamentAbsetzenIcon}" Stretch="Uniform"/>
                                        </dmui:DMMenuItem.Icon>
                                    </dmui:DMMenuItem>
                                    <!-- Ändern -->
                                    <dmui:DMMenuItem
                                            Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_AENDERN}}"
                                            Command="{Binding AendernMedikamentCommand}"
                                            CommandParameter="{Binding SelectMedikation}"
                                            IsEnabled="{Binding AbgesetzenMedikationEnabled}">
                                        <dmui:DMMenuItem.Icon>
                                            <Image Source="{StaticResource MedikamentAendernIcon}" Stretch="Uniform"/>
                                        </dmui:DMMenuItem.Icon>
                                    </dmui:DMMenuItem>
                                    <!-- Kopieren -->
                                    <dmui:DMMenuItem
                                            Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_KOPIEREN}}"
                                            Command="{Binding KopieMedikamentCommand}"
                                            CommandParameter="{Binding SelectMedikation}"
                                            IsEnabled="{Binding KopieMedikationEnabled}">
                                        <dmui:DMMenuItem.Icon>
                                            <Image Source="{StaticResource copyicon}" Stretch="Uniform"/>
                                        </dmui:DMMenuItem.Icon>
                                    </dmui:DMMenuItem>
                                    <!-- Stornieren -->
                                    <dmui:DMMenuItem
                                            Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_STORNIEREN}}"
                                            Command="{Binding StornoMedikamentCommand}"
                                            CommandParameter="{Binding SelectMedikation}"
                                            IsEnabled="{Binding StornoMedikationEnabled}">
                                        <dmui:DMMenuItem.Icon>
                                            <Image Source="{StaticResource stornierenicon}" Stretch="Uniform"/>
                                        </dmui:DMMenuItem.Icon>
                                    </dmui:DMMenuItem>
                                </dmui:DMContextMenu>
                            </dmui:DMContextMenu.ContextMenu>
                            <dmui:DMGrid.Columns>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKATION_BTM}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding MedikamentBtm}" >
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static dmconstants:Translation.MEDIKATION_RL_INFO}}"
                                                       DataMemberBinding="{Binding Dummy1}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <dmui:DMImage HorizontalAlignment="Center" Height="20" Width="20" Source="{StaticResource rlicon}" Visibility="{Binding MedikamentRoteListeInfo, Converter={StaticResource unemptystringtovisibilityconverter}}" >
                                                <dmui:DMImage.ToolTip>
                                                    <ContentControl>
                                                        <dmui:DMMultilineTextBox x:Name="rtb" FontSize="12" IsReadOnly="True" VerticalContentAlignment="Top"
                                                                                 Text="{Binding MedikamentRoteListeInfo}" MaxWidth="800"
                                                                                 VerticalScrollBarVisibility="Auto"/>
                                                    </ContentControl>
                                                </dmui:DMImage.ToolTip>
                                            </dmui:DMImage>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_BEZEICHNUNG}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding MedikamentBezeichnung}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding MedikamentBezeichnung}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding Path=[Besonderheiten], Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="FontWeight" Value="Bold"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKATION_WIRKSTOFF}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding MedikamentWirkstoff}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding MedikamentWirkstoff}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKATION_DARREICHUNGSFORM}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding [Darreichungsform]}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding [Darreichungsform]}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKAMENT_APPLIKATIONSFORM}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding Path=[Applikationsform]}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Path=[Applikationsform]}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn MinWidth="35" MaxWidth="35" Header="{dmextensions:Sql Key={x:Static dmconstants:Translation.GLOBAL_INFO}}"
                                                           DataMemberBinding="{Binding Dummy2}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <dmui:DMImage HorizontalAlignment="Center" Height="24" Width="16" Source="{StaticResource info}" Margin="-2,0,0,0" Visibility="{Binding KlientMedikamentPlanungstext, Converter={StaticResource unemptystringtovisibilityconverter}}" >
                                                <dmui:DMImage.ToolTip>
                                                    <ContentControl>
                                                        <dmui:DMMultilineTextBox x:Name="rtb" FontSize="12" IsReadOnly="True" VerticalContentAlignment="Top"
                                                                                 Text="{Binding KlientMedikamentPlanungstext}" MaxWidth="800"
                                                                                 VerticalScrollBarVisibility="Auto"/>
                                                    </ContentControl>
                                                </dmui:DMImage.ToolTip>
                                            </dmui:DMImage>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKATION_BESONDERHEITEN}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding [Besonderheiten]}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding [Besonderheiten]}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding Path=[Besonderheiten], Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="FontWeight" Value="Bold"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_BEGINN}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding KlientMedikamentBeginnAm, Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentBeginnAm, Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_ENDE}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding KlientMedikamentEndeAm, Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentEndeAm, Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_ARZT}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding Path=[Arzt]}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Path=[Arzt]}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKATION_REZEPTNUMMER}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding KlientMedikamentRezept}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentRezept}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKATION_BESTAND}}"
                                                           IsReadOnly="True" x:Name="Bestand" IsVisible="{Binding Bestandsführung}"
                                                           DataMemberBinding="{Binding Path=[Bestand]}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Path=[Bestand]}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKATION_BESCHAFFUNGSTAGE}}"
                                                           IsReadOnly="True" x:Name="KlientMedikamentBeschaffungstage" IsVisible="{Binding Bestandsführung}"
                                                           DataMemberBinding="{Binding KlientMedikamentBeschaffungstage}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentBeschaffungstage}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKATION_MELDEBESTAND}}"
                                                           IsReadOnly="True" x:Name="KlientMedikamentMeldebestand" IsVisible="{Binding Bestandsführung}"
                                                           DataMemberBinding="{Binding KlientMedikamentMeldebestand, StringFormat={}{0:###0}}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentMeldebestand, StringFormat={}{0:###0}}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.MEDIKAMENT_LAGERORT}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding [Lagerort]}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding [Lagerort]}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_ABGESETZT_AM}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding KlientMedikamentAbgesetztAm, Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentAbgesetztAm, Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_VON}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding KlientMedikamentAbgesetztVon}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentAbgesetztVon}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_ERFASST_AM}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding Path=[KlientMedikamentErfasstAm], Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Path=[KlientMedikamentErfasstAm], Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_VON}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding KlientMedikamentErfasstVon}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentErfasstVon}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                            <DataTrigger Binding="{Binding KlientMedikamentStronogrund, Converter={StaticResource StringNotEmptyToBooleanTrueConverter}}" Value="True">
                                                                <Setter Property="TextDecorations" Value="Strikethrough"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_STORNIERT_AM}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding KlientMedikamentStornoAm, Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentStornoAm, Converter={StaticResource dateTimeConverter}, StringFormat={}{0:dd/MM/yyyy}}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_VON}}"
                                                           IsReadOnly="True"
                                                           DataMemberBinding="{Binding KlientMedikamentStornoVon}">
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentStornoVon}">
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewDataColumn Header="{dmextensions:Sql Key={x:Static  dmconstants:Translation.GLOBAL_STORNO_GRUND}}"
                                                           IsReadOnly="True" MaxWidth="400"
                                                           DataMemberBinding="{Binding KlientMedikamentStronogrund}" >
                                    <dmui:DMGridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding KlientMedikamentStronogrund}" >
                                                <TextBlock.Style>
                                                    <Style TargetType="TextBlock">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding Path=[KlientMedikamentQuittiert]}" Value="True">
                                                                <Setter Property="Foreground" Value="Green"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </TextBlock.Style>
                                            </TextBlock>
                                        </DataTemplate>
                                    </dmui:DMGridViewDataColumn.CellTemplate>
                                </dmui:DMGridViewDataColumn>
                                <dmui:DMGridViewColumn MaxWidth="30" MinWidth="30">
                                    <dmui:DMGridViewColumn.CellTemplate >
                                        <DataTemplate >
                                            <dmui:DMImageButton Style="{StaticResource GridDeleteButtonStyle}"
                                                                Visibility="{Binding Path=[KlientMedikamentQuittiert], Converter={StaticResource BoolToVisibilityHiddenConverter}}"
                                                                Command="{Binding Path=DataContext.DeleteMedikamentCommand, RelativeSource={RelativeSource AncestorType=dmui:DMGrid}}"
                                                                CommandParameter="{Binding}"
                                                                HorizontalAlignment="Center"/>
                                        </DataTemplate>
                                    </dmui:DMGridViewColumn.CellTemplate>
                                </dmui:DMGridViewColumn>
                            </dmui:DMGrid.Columns>
                        </dmui:DMGrid>

    Thanks and best regards,

    David

     

  2. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 07 Aug 2015 Link to this post

    Hi David,

    The issue is known to us and has already been fixed. Would it be possible for you to update to latest version and let me know if you experience the issue anymore?

    Best Regards,
    Stefan X1
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top