Imcomprehensive probleme with LoadSettings/SaveSettings

3 posts, 1 answers
  1. Guillaume
    Guillaume avatar
    4 posts
    Member since:
    Apr 2009

    Posted 11 Aug 2011 Link to this post

    I've got a RadFilter.
    I try to save expressions with SaveSettings(), no problems. I can save the string value in a database column.
    I precise I have my own FilterEditorTemplate (which is a RadControl with specific business databinding).

    When i try a LoadSettings on this string value, I've got this response :
    Reference is not set to an instance of an object with this stacktrace :
    à Telerik.Web.UI.RadFilterDataFieldEditor.CreateEditorFrom(RadFilterDataFieldEditor baseEditor) à Telerik.Web.UI.RadFilterSingleExpressionItem.SetupFunctionInterface(Control container) à Telerik.Web.UI.RadFilterExpressionItem.CreateFunctionalInterface() à Telerik.Web.UI.RadFilter.CreateFilterItems() à Telerik.Web.UI.RadFilter.CreateControlHierarchy() à Telerik.Web.UI.RadFilter.CreateChildControls() à System.Web.UI.Control.EnsureChildControls()

    I precise I am with an objectstateformater for the load and save settings. I tried with binaryformat too and the exception moves into :
    serialized data are invalid.

    Is it because i've got my own editor ?

    Can you help me ?
  2. Answer
    Mira avatar
    1124 posts

    Posted 16 Aug 2011 Link to this post

    Hello Guillaume,

    I tried to replicate the issue which you described, but to no avail. Attached to this message, you will find the code which I used for testing. In it the Country field editor is a custom one and all filter expressions are saved and loaded successfully.

    Please, take a look at my project and let me know if there are any differences at your end, which I may be leaving out.

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. DevCraft R3 2016 release webinar banner
  4. Guillaume
    Guillaume avatar
    4 posts
    Member since:
    Apr 2009

    Posted 22 Aug 2011 Link to this post

    OK, the problem was I called the LoadSettings BEFORE the LoadExpression template (I have to do LoadSettings in the page_Load).
Back to Top