IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
You must store the client component in a .js file in the project, where the designer resides.
To implement the client component, perform the following:
Type.registerNamespace("NewsRotator");
NOTE: You must use the same namespace throughout the entire client code of this file.
NewsRotator.RotatorDesigner = function (element) {
NewsRotator.RotatorDesigner.initializeBase(this, [element]);
}
NewsRotator.RotatorDesigner.prototype = {
initialize: function () {
NewsRotator.RotatorDesigner.callBaseMethod(this, 'initialize');
},
dispose: function () {
NewsRotator.RotatorDesigner.callBaseMethod(this, 'dispose');
refreshUI: function () {
var controlData = this.get_controlData();
jQuery("#txtTitle").val(controlData.Title);
applyChanges: function () {
controlData.Title = jQuery("#txtTitle").val();
get_controlData: function () {
return this.get_propertyEditor().get_control();
get_propertyEditor: function () {
return this._propertyEditor;
NewsRotator.RotatorDesigner.registerClass('NewsRotator.RotatorDesigner', Telerik.Sitefinity.Web.UI.ControlDesign.ControlDesignerBase);
if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important