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 class in a .js file in the project, where the view resides.
NOTE: The same namespace must be used throughout the entire client code of this file.
Use the following code sample:
Type.registerNamespace("NewsRotator");
NewsRotator.DesignerView1 = function (element) {
NewsRotator.DesignerView1.initializeBase(this, [element]);
}
NewsRotator.DesignerView1.prototype = {
initialize: function () {
NewsRotator.DesignerView1.callBaseMethod(this, 'initialize');
},
dispose: function () {
NewsRotator.DesignerView1.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_parentDesigner().get_propertyEditor().get_control();
get_parentDesigner: function () {
return this._parentDesigner;
set_parentDesigner: function (value) {
this._parentDesigner = value;
NewsRotator.DesignerView1.registerClass('NewsRotator.DesignerView1', Sys.UI.Control, Telerik.Sitefinity.Web.UI.ControlDesign.IDesignerViewControl);
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