I have tested the proposed solution by Radoslav and it works fine. Here is a short video
of the working widget. Please, specify what version of Sitefinity you are using. In order to use the code in the controller you should have a reference to Microsoft.CSharp.
Hope this helps.
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal
and vote to affect the priority of the items