Problem in loading RadComboBox using the RadDataDomainContext.

4 posts, 0 answers
  1. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 29 Mar 2011 Link to this post


    I am facing the following problem while trying to load the RadComboBox using the RadDomainDataSource.

    [Arg_NULL ReferenceException]
    Debugging Resource strings are unavailable.Often the key and arguments provide sufficient information to diagnose the problem.

    I am getting this error very frequently when I run the application from the local web server (directly from browser). some times it is loading the data properly.

    If I run the application in the debug mode, I am not getting this frequently. Following are the details which are taken while debugging the application.

    Object reference not set to an instance of an object. 

    at PerformanceManagersUI.Views.TransactionDetail.SecuritySymbolDataSource_LoadedData(Object sender, LoadedDataEventArgs e)
       at Telerik.Windows.Controls.RadDomainDataSource.OnLoadedData(LoadedDataEventArgs args)
       at Telerik.Windows.Controls.RadDomainDataSource.OnViewLoadedData(Object sender, LoadedDataEventArgs e)
       at Telerik.Windows.Data.QueryableDomainServiceCollectionViewBase.OnLoadedData(LoadedDataEventArgs args)
       at Telerik.Windows.Data.QueryableDomainServiceCollectionView`1.OnDomainServiceCollectionLoadCompleted(Object sender, LoadOperationCompletedEventArgs`1 e)
       at Telerik.Windows.Controls.DomainServices.DomainServiceCollection`1.OnLoadCompleted(LoadOperationCompletedEventArgs`1 args)
       at Telerik.Windows.Controls.DomainServices.DomainServiceCollection`1.OnLoadOperationCompleted(LoadOperation`1 loadOperation)
       at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass13`1.<Load>b__11(LoadOperation lo)
       at System.ServiceModel.DomainServices.Client.LoadOperation.<>c__DisplayClass4`1.<Create>b__0(LoadOperation`1 arg)
       at System.ServiceModel.DomainServices.Client.LoadOperation`1.InvokeCompleteAction()
       at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Object result)
       at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(DomainClientResult result)
       at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
       at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass1b.<Load>b__17(Object )

    FYI: I am using the RadComboBox in DataForm control and loading DatForm and RadComboBox with 2 different RadDomainDtaSources.

    Please help

  2. Rossen Hristov
    Rossen Hristov avatar
    2477 posts

    Posted 29 Mar 2011 Link to this post

    Hi SivaPrasad Bevara,

    Why don't you use your debugger and actually see which object is null?

    It is some object in SecuritySymbolDataSource_LoadedData event handler, but only you can see what it is.

    Only you know what you have written in the event handler and what is null.

    Does this make any sense?

    the Telerik team
  3. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 29 Mar 2011 Link to this post

    Thank you for your quick response.
    I tried to debug there. But it is not going to the LoadedData event handler.
    I got this error details in the Application_UnhandledException event in the App.xaml.cs
    In the LoadedData event handler I am using the following code.
    If(e.Entities != null)
     Combobox.ItemsSource = e.Entities;


  4. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 30 Mar 2011 Link to this post

    It is working now.

    Thank you for your suggestion. The combobox in the DataForm is returning null.

Back to Top