Renderer Scope property

  1. #1

    Renderer Scope property

    In Ext.Net 2.5 there used to be a Scope property which allowed one to specify a scope for the renderer JavaScript function.

    This is from the Ext.Net\Utility\Renderer.cs 2.5.2 source code:

            /// <summary>
            /// The JavaScript logic to be called when this Renderer fires. The Handler will be automatically wrapped in a proper function{} template and passed the correct arguments for this event.
            /// </summary>
            [ConfigOption(JsonMode.Raw)]
            [DefaultValue("")]
            [NotifyParentProperty(true)]
            [Description("The JavaScript logic to be called when this Renderer fires. The Handler will be automatically wrapped in a proper function{} template and passed the correct arguments for this event.")]
            public virtual string Scope
            {
                get
                {
                    return this.State.Get<string>("Scope", "");
                }
                set
                {
                    this.State.Set("Scope", value);
                }
            }
    In Ext.Net 4 there is no Scope property. What can I use instead to set the JavaScript scope. I have a case where I have a column renderer which needs access to some extra information.

    Also, as a side note, the Margins property has been renamed to MarginSpec, however, I haven't found this in the breaking changes list for 3 or 4.

    Thank you
    Last edited by bogc; Apr 27, 2016 at 8:19 PM.

Similar Threads

  1. Scope in Column renderer
    By glenh in forum 2.x Help
    Replies: 0
    Last Post: Feb 03, 2016, 8:27 PM
  2. [CLOSED] Scope in Column Renderer is ignored
    By matt in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 20, 2014, 4:46 AM
  3. [CLOSED] when gridpanel column apply renderer.format , renderer.fn not work
    By mis@adphk.com in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 12, 2013, 10:35 AM
  4. [CLOSED] PropertyGrid property renderer + combobox editor
    By bossun in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Nov 06, 2012, 8:24 PM
  5. [CLOSED] GridPanel / Renderer : Property "undefined"?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 03, 2011, 8:50 PM

Posting Permissions