This is a migrated thread and some comments may be shown as answers.

Slow Performance from using RadGridView

0 Answers 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mahlatse
Top achievements
Rank 1
Mahlatse asked on 21 Jun 2017, 08:50 AM

Hi, I am experiancing an issue with the rad gridView where the binding errors are making the performance impossibe to work with,  the errors I get are

 

ystem.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=SelectedPane.IsActive; DataItem='RadPaneGroup' (Name=''); target element is 'PaneHeader' (Name='HeaderElement'); target property is 'IsHighlighted' (type 'Boolean')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=SelectedPane.IsActive; DataItem='RadPaneGroup' (Name=''); target element is 'PaneHeader' (Name='HeaderElement'); target property is 'IsHighlighted' (type 'Boolean')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'CommandParameter' (type 'Object')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'CommandTarget' (type 'UIElement')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=IsFloatingOnly; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'IsChecked' (type 'Boolean')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'CommandParameter' (type 'Object')
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=; DataItem=null; target element is 'RadMenuItem' (Name=''); target property is 'CommandTarget' (type 'UIElement')

 

I have checked that the DataContext is not null, and when using the WPF built in Listbox in place of the RadGridView, I do not get any issues. I have seen the same question asked on StackOverflow with no response

 

https://stackoverflow.com/questions/17842712/wpf-cannot-retrieve-value-using-the-binding-and-no-valid-fallback-value-exists

Part of my code looks like this :

 

<telerik:RadGridView x:Name="SummaryGrid" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                             CanUserDeleteRows="False"
                             CanUserFreezeColumns="False"
                             RowIndicatorVisibility="Collapsed"
                             CanUserResizeColumns="False"
                             AutoGenerateColumns="False"
                             CanUserSortGroups="False"
                             GroupRenderMode="Flat"
                             ShowGroupPanel="False"
                             EnableRowVirtualization="False"
                             ItemsSource="{Binding VerifiedItems, FallbackValue={x:Static constant:FallBackConstants.FallBackBaseConversionsList}}">
            <telerik:RadGridView.Columns>
                -->
        <!--column shown the path -->
        <!--
                <telerik:GridViewDataColumn Width="*"
           Header="Type"
           IsGroupable="False"
                                            DataMemberBinding="{Binding Type}"
           IsFilterable="True"
                                            IsReadOnly="True">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel HorizontalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Hidden">
                                <TextBlock Text="{Binding Type, FallbackValue={x:Static constant:FallBackConstants.FallBackString}}" />
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>

 

 

Is there anything that I might be missing in terms of binding on the RadgridView?

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Mahlatse
Top achievements
Rank 1
Share this question
or