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

SP2 Radgridview problem

5 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
boyhalong
Top achievements
Rank 1
boyhalong asked on 20 Jan 2010, 11:02 AM
Hi telerik !
i'm using radcontrols for silverlight sp2

DomainDataSource.RejectChanges
-> Object reference not set to instance of an object
i see exception detail: exception throw by radgridview


Thank you

5 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 25 Jan 2010, 12:28 PM
Hello The,

I cannot simulate the reported exception. We've fixed another issue that can be related to your report, but I cannot commit that the fix will cover your case. Please try your scenario with latest internal build assemblies (2009.3.1322) and let me know if the problem persists.

All the best,
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
boyhalong
Top achievements
Rank 1
answered on 26 Jan 2010, 04:18 AM
Hi telerik !
I have just test with telerik's internal build assemblies (2009.3.1322)
but that problem still persists.
I'm using WCF RIA Service.
i'm using Extension method for DomainDataSource
    ''' <summary> 
    ''' Cancels the add or edit transaction.  
    ''' </summary> 
    ''' <param name="source">The <see cref="DomainDataSource"/> being extended.</param> 
    <System.Runtime.CompilerServices.Extension()> _  
    Public Sub CancelNewAndEdit(ByVal source As DomainDataSource)  
        Dim collection As IEditableCollectionView = (CType(source.DataView, IEditableCollectionView))  
        If collection.IsAddingNew Then  
            collection.CancelNew()  
        End If  
        If collection.IsEditingItem Then  
            collection.CancelEdit()  
        End If  
    End Sub 
I called this method before DomainDataSource.RejectChanges to resolve "'RejectChanges' is not allowed during an AddNew or EditItem transaction." problem.
i think this is reason for that problem persists.

Thank you so muck.
0
boyhalong
Top achievements
Rank 1
answered on 28 Jan 2010, 10:18 AM
Hi telerik !
The same exception throwed when i'm using DomainDataSource.SortDescriptors.Clear() after using extension method to cancel new and edit on domaindatasource.

I hope it's clear for you :)

Thank !
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 29 Jan 2010, 08:57 AM
Hello The,

I've managed to reproduce the exception. Thank you for the detail information. The issue is already fixed and will be available with today's latest internal build. Please give it a try and let me know if problem persist.

P.S. I've updated your Telerik points accordingly.

Sincerely yours,
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
boyhalong
Top achievements
Rank 1
answered on 01 Feb 2010, 02:22 AM
Hi Telerik !

problem has been resolved with lastest intenal build

Thank you so much !



Tags
GridView
Asked by
boyhalong
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
boyhalong
Top achievements
Rank 1
Share this question
or