Error when RadComboBox posts back

4 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 26 Mar 2010 Link to this post

    Hello,

    I reload the items within a RadComboBox using the client-side API.  I'm not using the WS load on demand feature, but solely the JS api to add items to the combo.  When the items are refreshed and a postback happens, I'm getting this error below.  When it goes to load the combo client-state, an error occurs.  We are using the last 2009 Q3 version.

    Thanks.

     

    System.NullReferenceException: Object reference not set to an instance of an object.

    at Telerik.Web.UI.ControlItem.LoadFromDictionary(IDictionary`2 dictionary)

    at Telerik.Web.UI.ClientStateLogPlayer`1.Insert(ClientStateLogEntry entry, ControlItemCollection items, Int32 index)

    at Telerik.Web.UI.ClientStateLogPlayer`1.Play(ClientStateLogEntry entry)

    at Telerik.Web.UI.ClientStateLogPlayer`1.Play(IEnumerable`1 clientStateLogEntry)

    at Telerik.Web.UI.RadComboBox.LoadClientState(RadComboBoxClientState clientState)

    at Telerik.Web.UI.RadComboBox.LoadPostData(String postDataKey, NameValueCollection postCollection)

    at Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)

    at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)

    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 27 Mar 2010 Link to this post

    Hello Brian Mains,

    How are you adding the Items on the client side? Can you please paste here the relevant code?

    Kind regards,
    Simon
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 28 Mar 2010 Link to this post

    Hey,

    The only way that you can, by using the client-side API: http://www.telerik.com/help/aspnet-ajax/combo_clientsidebasics.html.  I've called trackChanges, and begin to clear the list, then add all of the relevant items.  Please let me know if this should be submitted as a support ticket.

    FYI, I use trackChanges for the entire collection, not before and after each item.  Essentially it's doing:

    track changes

    clear old items

    add 30 items to the list

    commit changes

    Thanks.
  5. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 29 Mar 2010 Link to this post

    Hi Brian Mains,

    Thank you for this information.

    Since this is a completely normal use-case there may be a bug in this functionality.

    Please submit a support ticket and send us a page showing the issue, so that we inspect the bug right away.

    Regards,
    Simon
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top