Please note that you can not put the server side code in asp.net page. Regarding your second approach we are not able to replicate the issue locally without a working project. Therefore I suggest that you open a formal support ticket and send us a simple runnable application. Thus we will be able to further investigate on your project and isolate the root cause of the presented issue.
Looking forward for your reply.
All the best,
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items