Yes, you can assign the PersistenceManager.StorageId property to any UI element. About the error, I am afraid without your setup I cannot be sure what is causing the issue. However, I can suggest you several things which you can try to resolve this:
- The error can occur if the referenced Telerik assemblies do not match the target framework (.NET version) of the project. For example, if you reference the assemblies built under .NET 4.5 into a project that targets .NET 4 and then you try to define a Telerik control, Visual Studio will raise an error that claims that it cannot find it. The same (or a similar) issue can appear if there is a difference between the assemblies versions. Please double check if all referenced Telerik assemblies match the project's target framework and they are of the same version.
- If you have had used a specific dll's version in your project and at some point you upgraded to another one and then build the project, Visual Studio's caching mechanism can preserve some of the old assemblies and use them instead the new ones. This also can lead to issues. You can try to manually delete the "bin" and "obj" folders from your project and then Rebuild and Clean it.
Please try those suggestions and let me know if they resolve the issue.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.