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

RadPersistenceManagerProxy - Controls should have unique UniqueKey properties

5 Answers 93 Views
Persistence Framework
This is a migrated thread and some comments may be shown as answers.
Alexis
Top achievements
Rank 1
Alexis asked on 21 Jul 2015, 06:25 PM

Hello. 

After update my Telerik dll's, i have encountered the exception described in the title (RadPersistenceManagerProxy - Controls should have unique UniqueKey properties).

When i was running the version 2013.1.403.40, my application works good, but running the version 2015.1.401.40, I got the exception described before.

 Thanks for your help.

 

Regards,

Alexis.

5 Answers, 1 is accepted

Sort by
0
Alexis
Top achievements
Rank 1
answered on 21 Jul 2015, 06:30 PM
BTW, I have set the UniqueKey atributte to all my RadPersistenceManagerProxy elements, but without success.
0
Kostadin
Telerik team
answered on 24 Jul 2015, 08:30 AM
Hi Alexis,

Note that you need to specify a different UniqueKey for each RadPersistenceManagerProxy. In case you need a Content Page and UserControl and the UserControl is used a couple of time on the page then you can specify a UniqueKey on Page_Load event handler.
I prepared a small runnable sample which demonstrates that and attached it to this forum thread.

Regards,
Kostadin
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Vasssek
Top achievements
Rank 1
answered on 07 Sep 2016, 07:00 AM

Hello,

I have set UniqueKey to all of my RadPersistanceManagerProxy control. Now I get another error message: Either all proxies should have UniqueKey set or none of them!

What doest it mean all proxies ? Is it control in my ascx which is included in Proxy like: this.RadPersistenceManagerProxy1.PersistenceSettings.AddSetting(RadTreeViewFilterGridColumns);

What is this and how to fix it ? Please help me to solve this issue.

Thank you

Best regards

Vasssek

0
Kostadin
Telerik team
answered on 10 Sep 2016, 01:02 PM
Hello Vasssek,

The cause for this issue is that you need to add a UniqueKey to each RadPersistanceManagerProxy used on the page. In case you are using a same UserControl twice you need to set two different UniqueName to each one of them. Nevertheless, you can remove the UniqueName from the RadPersistanceManagerProxy  and this way automatic generated names will be set.

Regards,
Kostadin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Vasssek
Top achievements
Rank 1
answered on 12 Sep 2016, 03:37 PM

Hello,

I have 7 instances of the same user web control (.ascx) nested inside RadMultiPage - each one is inside different RadPageView, of course.

Strange thing is that even RenderSeletedPageOnly is set to true, all user web controls placed inside radpageviews are somehow initialized on server side and that caused be this problem with unique keys and some another problems with saving default state, etc...

I have to load user control programatically in OnInit page method. There I check which radtabstrip is actually selected and then only current one user contorl is loaded. This way it works as expected...

Best regards

Vasssek


Tags
Persistence Framework
Asked by
Alexis
Top achievements
Rank 1
Answers by
Alexis
Top achievements
Rank 1
Kostadin
Telerik team
Vasssek
Top achievements
Rank 1
Share this question
or