Object reference not set to an instance of an object

5 posts, 0 answers
  1. raskarov
    raskarov avatar
    8 posts
    Member since:
    Jul 2011

    Posted 01 Aug 2011 Link to this post

    I have nested grids. in child table I have this: 
    <telerik:GridDropDownColumn AllowFiltering="true" DataField="Customer_Id" 
    DataSourceID="entityDataSource1" DropDownControlType="RadComboBox"
    HeaderText="Customer Name" ListTextField="Name" ListValueField="Customer_Id"
    UniqueName="CustomerNameDropDown" AllowAutomaticLoadOnDemand="true">  </telerik:GridDropDownColumn>

    when I try to select it says: Object reference not set to an instance of an object
    So, automatic load on demand does not work with nested grids? Or I have to use edit template?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Aug 2011 Link to this post

    Hello Zakary,

    I suppose this is because you have Automatic Load On Demand enabled for the dropdown column. With this feature, the combo items are requested only when you open the dropdown.
    aspx:
    <telerik:GridDropDownColumn DataField="Customer_Id" EmptyListItemText="Select" DropDownControlType="RadComboBox"
     HeaderText="Customer Name" ListTextField="Name"  DataSourceID="entityDataSource1" AllowFiltering="true"
     ListValueField="Customer_Id" AllowAutomaticLoadOnDemand="true">
    </telerik:GridDropDownColumn>

    Thanks,
    Shinu.
  3. raskarov
    raskarov avatar
    8 posts
    Member since:
    Jul 2011

    Posted 02 Aug 2011 Link to this post

    That's exactly when I receive this error, when I click on the arrow or type in something in combobox. I do not see any difference between yours and mine code. Can you please point me what changes should I do in order this to work?
  4. Scott
    Scott avatar
    2 posts
    Member since:
    Oct 2013

    Posted 09 Dec 2013 Link to this post

    Was this ever resolved for you? I'm having the exact same issue with version 2013.2.611.45
  5. Nencho
    Admin
    Nencho avatar
    1881 posts

    Posted 12 Dec 2013 Link to this post

    Hello,

    I have tried to replicate the described issue, using 2013.2.611 version of our controls, but to no avail. Therefore,  I am attaching the sample project I have tested with. You could give it a try at your end and test the behavior. Additionally, let us know how the implementation at your end differs, so we could replicate the problem locally. In addition, here is a video, demonstrating the behavior.

    Regards,
    Nencho
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top