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

Issue with newrow and tab

4 Answers 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 28 Jan 2010, 01:26 PM
Hi,

When I do the following actions:
1. Add a new row 
2. Start to edit a cell
3. Start to tab to the next cell
then I get the following error message:

   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.BringIndexIntoView(Int32 index) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.BringIntoView.cs:line 29
   at Telerik.Windows.Controls.GridView.GridViewDataControl.ScrollIntoViewRecursive(FrameworkElement element, Stack`1 itemStack, Action`1 scrollFinishedCallback) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.Scrolling.cs:line 252
   at Telerik.Windows.Controls.GridView.GridViewDataControl.ScrollRowIntoViewInternal(Object dataItem, Action`1 scrollFinishedCallback) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.Scrolling.cs:line 191
   at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass69.<ScrollIntoViewAsync>b__68() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q3_SP1\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.Scrolling.cs:line 94
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Jan 2010, 01:48 PM
Hi,

I've tried this using our latest binaries (Q3 SP2) however the grid worked fine - please check the attached application. Can you verify if you have our latest service pack?

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Thomas
Top achievements
Rank 1
answered on 28 Jan 2010, 02:05 PM
Hi,
:
I build the project with the following configuration
telerik: 2009.3.1322.35
.net 4.0 beta 2

The gridview looks as follows:

  <rad:RadGridView Grid.Row="0"
                            Name="GridView1"
                            AutoGenerateColumns="False"
                            ValidationMode="Row"
                            ShowGroupPanel="False"
                            ColumnsWidthMode="Fill"
                            AddingNewDataItem="GridView1_AddingNewDataItem"
                            RowEditEnded="GridView1_RowEditEnded"
                            RowValidating="GridView1_RowValidating"
                            ShowInsertRow="True"
                            CanUserDeleteRows="True"
                            CanUserInsertRows="{Binding hasPermission, ElementName=root}"
                            ActionOnLostFocus="CommitEdit" MaxHeight="500" Width="400">
                    <rad:RadGridView.Columns>
                        <rad:GridViewDataColumn Header="Naam"
                                                DataMemberBinding="{Binding Naam}"
                                                IsReadOnly="{Binding hasNoPermission, ElementName=root}" />
                        <rad:GridViewDataColumn Header="Sommeerbaar"
                                                DataMemberBinding="{Binding IsSommeerBaar}"
                                                IsReadOnly="{Binding hasNoPermission, ElementName=root}" />

                    </rad:RadGridView.Columns>
                </rad:RadGridView>
0
Nedyalko Nikolov
Telerik team
answered on 29 Jan 2010, 02:17 PM
Hello Thomas,

In your snippet I saw a hook for the RadGridView.AddingNewDataItem event, so I guessed that you are using a collection that does not implement INotifyPropertyChanged interface as RadGridView.ItemsSource. I've managed to reproduce just the same exception with the described scenario. This issue is already fixed and will be available with today's latest internal build. Please give it a try and let me know how it works on your side.

P.S. I've updated your Telerik points according to your report.

Kind regards,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Thomas
Top achievements
Rank 1
answered on 29 Jan 2010, 11:04 PM
Hello,

Perfect!
Problem solved with the new build.

Thanks,
Thomas.
Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Thomas
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or