예제 #1
0
		/// <summary>
		/// Write the properties from the bag to the writer. This method can be overrided for advanced scenarios.
		/// </summary>
		/// <param name="jw">The writer.</param>
        protected override void WriteProperties(DextopJsWriter jw)
        {
            jw.DefaultProperty("itemId", itemId);
            jw.DefaultProperty("xtype", xtype);
            if (itemId != null)
            {
                jw.AddLocalizationProperty("title", title, itemId + "TitleText");                
            }
            else
            {
                jw.DefaultProperty("title", title);
            }
            if (layout != null)
            {
                jw.AddProperty("layout", layout);
            }
            jw.DefaultRawProperty("defaults", defaults);
            jw.DefaultRawProperty("fieldDefaults", fieldDefaults);
            jw.DefaultProperty("margin", margin);
            jw.DefaultProperty("style", style);
            jw.DefaultProperty("bodyStyle", bodyStyle);
            jw.DefaultProperty("border", border);
            jw.DefaultProperty("autoHeight", autoHeight);
            jw.DefaultProperty("anchor", anchor);
            jw.DefaultProperty("width", width);
            jw.DefaultProperty("columnWidth", columnWidth);
            jw.DefaultProperty("flex", flex);

            base.WriteProperties(jw);
        }
예제 #2
0
            /// <summary>
            /// Write the properties from the bag to the writer. This method can be overrided for advanced scenarios.
            /// </summary>
            /// <param name="jw">The writer.</param>
            protected override void WriteProperties(DextopJsWriter jw)
            {
                jw.AddProperty("name", name);
                jw.DefaultProperty("type", type);
                jw.DefaultProperty("defaultValue", defaultValue);
                if (useNull == true)
                    jw.AddProperty("useNull", useNull);
                if (persist == false)
                    jw.AddProperty("persist", false);
                jw.DefaultProperty("mapping", mapping);
                jw.DefaultRawProperty("sortType", sortType);
                jw.DefaultRawProperty("convert", convert);
                jw.DefaultProperty("sortDir", sortDir);

                base.WriteProperties(jw);
            }