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

Imcomprehensive probleme with LoadSettings/SaveSettings

2 Answers 84 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 11 Aug 2011, 04:10 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Mira
Telerik team
answered on 16 Aug 2011, 03:10 PM
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.

Regards,
Mira
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.

0
Guillaume
Top achievements
Rank 1
answered on 22 Aug 2011, 10:11 AM
OK, the problem was I called the LoadSettings BEFORE the LoadExpression template (I have to do LoadSettings in the page_Load).
Tags
Filter
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Mira
Telerik team
Guillaume
Top achievements
Rank 1
Share this question
or