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

[Solved] Crash when scrolling with GridView Q3 release (using RIA services and domain data source)

1 Answer 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
uku
Top achievements
Rank 1
uku asked on 11 Nov 2009, 10:42 AM

Hello,

I have a very urgent problem with the Q3 grid, because my app crashes when scrolling down. When clicking on the down button the app crashes after clicking approx. 10 times, when I'm using the slider to scroll down it crashes immediately. I don't know if its a problem with the new virtualization functionality of the grid.
When updating from Q3 beta to the Q3 release I didn't change anything in the grid definition because as I understood the new virtualization mode is internal and it's not necessary or even possible to activate or deactive it. I have double checked the grid and all other Telerik assemblies in my project and I'm rather sure they all have the correct version.

I'm using RIA services and a domain data source. You can see the definition below

<dds:DomainDataSource x:Name="ddsProject" QueryName="GetProject" AutoLoad="True" LoadingData="ddsProject_LoadingData" LoadedData="ddsProject_LoadedData">  
    <dds:DomainDataSource.DomainContext> 
            <domain:VolvoDomainContext /> 
        </dds:DomainDataSource.DomainContext> 
        <dds:DomainDataSource.FilterDescriptors> 
                <riaData:FilterDescriptorCollection LogicalOperator="And" /> 
        </dds:DomainDataSource.FilterDescriptors> 
        <dds:DomainDataSource.SortDescriptors> 
                <riaData:SortDescriptor PropertyPath="ProjectNo" Direction="Ascending"/>  
        </dds:DomainDataSource.SortDescriptors> 
</dds:DomainDataSource> 
This is my grid definition which also wasn't modified with the new Q3 release.
<grid:RadGridView x:Name="ProjectList" ItemsSource="{Binding Data, ElementName=ddsProject}" 
       AutoGenerateColumns="False" ShowGroupPanel="True"   
       Height="410" MultipleSelect="True" IsFilteringAllowed="True" 
> 

The grid is embedded in a simple layout grid which is also embedded in another layout grid.
That means I have two nested layout grids. This constellation was working without any scrolling problems even in the Q3 beta relase.

My problem is as follows and happens at the moment especially at customer side, that's why it's so urgent.
When I'm scrolling down, the application crashes and I have an empty browser window with an "Error on page" hint.
May be it's important to mention that the server at customer site is a test server at the moment and has a rather slow internet connection, so the problem might become more obvious.

Below you can see the error details. May be they can help.

Webpage error details

 

Message: Unhandled Error in Silverlight Application   
Code: 4004      
Category: ManagedRuntimeError         
Message: System.Exception: Beim Aufruf einer COM-Komponente wurde ein HRESULT E_FAIL-Fehler zurückgegeben.  
   bei MS.Internal.XcpImports.CheckHResult(UInt32 hr)  
   bei MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)  
   bei System.Windows.FrameworkElement.MeasureOverride(Size availableSize)  
   bei System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)       
 
Line: 54  
Char: 13  
Code: 0  
 

What's also astonishing is, that during scrolling the date cells (DatePicker) below the visible first side are empty which is definitely not the case in the database. It seems as they are not loaded and that's why I thought it might be a problem with the virtualization.

At the moment I have no idea what I can check, test or modify to analyse and circumvent this problem.

So please help as soon as possible to solve this issue.

Thanks in advance

Uwe

I have an additional comment to the issue above. It seems that the RadDatePicker controls causes this problem. I've defined a date column like this
<grid:GridViewDataColumn.CellTemplate> 
   <DataTemplate> 
      <telInput:RadDatePicker SelectedDate="{Binding CreationDate, Mode=TwoWay}" /> 
   </DataTemplate> 
</grid:GridViewDataColumn.CellTemplate> 
when I comment my date definitions out, than the scrolling seems to work and also the date cells are no longer empty.

Hope this info helps to reproduce the problem

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Nov 2009, 02:22 PM
Hi Uwe,

Can you test your scenario with our yesterday uploaded internal build and let us know about the result.? If the problem persist please send us an example project where we can reproduce and debug this crash.

Regards,
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.
Tags
GridView
Asked by
uku
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or