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

Upgrading RadFilter from Pre-2010.3.1109

7 Answers 38 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Campus Labs
Top achievements
Rank 1
Campus Labs asked on 05 May 2011, 04:29 PM
I have been using the 2010.1.415 release of the RadFilter for some time now. As I look to upgrade to the latest release (2011.1.413), I've run into a problem where the RadFilter cannot load a previously saved state from the database. It looks to be the same issue as detailed here - that is, as of the Q3 2010 release (2010.3.1109), there is now a new way to save state.

I currently have customer RadFilter settings saved in a database. How can I upgrade this data to be compatible with the latest release?

7 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 May 2011, 09:06 AM
Hi Ross,

Before version Q3 2010, RadFilter used the ObjectStateFormatter for serialization and deserialization of filter expressions. The biggest caveat to this approach was that the ObjectStateFormatter did not support deserialization of object data serialized from another assembly version. Starting with Q3 2010, RadFilter now supports a second type of serialization - through the BinaryFormatter. The BinaryFormatter has the AssemblyFormat=FormatAssemblyStyle.Simple property set, meaning it can deserialize object data from a previous assembly version. Obviously, the BinaryFormatter provides greater flexibility, but comes at a cost too - it doesn't work in a medium trust environment.

Because the version of RadFilter (Q1 2010) you used when you serialized your settings data did not support the BinaryFormatter, you cannot deserialize this state with the latest version of the controls. The serialized data in your database is meaningful to the ObjectStateFormatter only, but the latter will fail to deserialize it with a version of RadControls different than the one you used when serializing.

Veli
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
Parimala
Top achievements
Rank 1
answered on 15 Jun 2012, 05:48 AM
Hi,

I also have the same issue , earlier I used the Q3 2010 version , now I have upgraded to 2011.3.1115.35 version. Now the binary value stored in the DB, while executing throw an error "The input stream is not a valid binary format". How to avoid this error and store the correct values to the database.

Thanks in advance
Regards
Parimala
0
Tsvetina
Telerik team
answered on 20 Jun 2012, 08:24 AM
Hi Parimala,

As noted by my collegue, all versions of RadFilter prior to Q3 2010 use the ObjectStateFormatter by default. Due to the nature of this formatter, it is not possible to deserialize settings, saved with different version of the assembly.
In other words, you cannot deserialize these settings using a newer dll version but once you save new settings using the BinaryFormatter, you will not encounter this problem again. 

Kind regards,
Tsvetina
the Telerik team
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 their blog feed now.
0
akash
Top achievements
Rank 1
answered on 10 Apr 2019, 07:54 AM

Hi Telerik team,

Do you have any solution where we can show the previously saved state from the database which was saved using older version of telerik radfilter? previously I used Telerik version '2010.1.415' and after the upgrade we used Telerik version '2019.1.215.45'. i know it is nor possible to show the previously saved state because of  ObjectStateFormatter deserialization issue and binary formatter not working in medium trust.

I just need a solution as it is developed by your team, you must have found out some solution to deal with this issue. Please let me know what should I do now?

0
Eyup
Telerik team
answered on 12 Apr 2019, 12:46 PM
Hi Akash,

Yes, as mentioned, I am afraid the old state and the new formatter are not supported. You will need to re-save these states with the new mode.

If this will too much work, you can open a formal support ticket and send us a very basic web site sample demonstrating some old saved state and the error with the current version.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
akash
Top achievements
Rank 1
answered on 15 Apr 2019, 10:03 AM

Hi Eyup,

Thank you for the response.

Just wanted to confirm that i if will re-save the those states with the new mode then it will work as usual or not ? because I tried but it was not successful. May be I am doing some mistakes. But is it possible if I will re-save it will save a new state and functionality will work as it is?

Thanks and Regards,

Akash Sinha

0
Rumen
Telerik team
answered on 18 Apr 2019, 09:31 AM
Hi Akash,

If you save the state with the new standard, and load those settings - they should work.

The following demo demonstrates this functionality: Save/Load RadFilter expressions.

Are you able to replicate the issue you mentioned with the new standard in it?

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Filter
Asked by
Campus Labs
Top achievements
Rank 1
Answers by
Veli
Telerik team
Parimala
Top achievements
Rank 1
Tsvetina
Telerik team
akash
Top achievements
Rank 1
Eyup
Telerik team
Rumen
Telerik team
Share this question
or