[CLOSED] Apply default Fields properties in FormPanel

  1. #1

    [CLOSED] Apply default Fields properties in FormPanel


    We want to apply all properties( in this case numberfield) in order to deactivate
    • hideTrigger
    • spinDownEnabled
    • spinUpEnabled

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
    <!DOCTYPE html>
    <head runat="server">
        <title>RTL - Ext.NET Examples</title>
        <%--<link href="Resources/Css/examples.css" rel="stylesheet" />--%>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:FormPanel ID="Panel3" runat="server" Title="Layout" Header="false" AnchorHorizontal="95%"
                <ext:VBoxLayoutConfig Align="Stretch" DefaultMargins="0" />
                    <ext:ConfigItem Mode="Value" Name="spinDownEnabled" Value="false" />
                    <ext:ConfigItem Mode="Value" Name="spinUpEnabled" Value="false" />
                    <ext:ConfigItem Mode="Value" Name="hideTrigger" Value="true" />
                <ext:NumberField ID="NumberField1" runat="server" />
                <ext:NumberField ID="NumberField2" runat="server" />
                <ext:NumberField ID="NumberField3" runat="server" />
                <ext:NumberField ID="NumberField4" runat="server" />            
    The trigger was hided but other properties are not.

    Last edited by Daniil; Mar 05, 2013 at 4:03 AM. Reason: [CLOSED]
  2. #2

    - you need to use Mode="Raw" for boolean values
    - try to replace FieldDefaults by Defaults (because FieldDefaults can be applied to late, when field is created already)

    		<ext:Parameter Mode="Raw" Name="spinDownEnabled" Value="false" />
    		<ext:Parameter Mode="Raw" Name="spinUpEnabled" Value="false" />
    		<ext:Parameter Mode="Raw" Name="hideTrigger" Value="true" />            
  3. #3

    According to this docs article, FieldDefaults can accept the Ext.form.Labelable mixin' options only.

    There are no spinDownEnabled, spinUpEnabled, hideTrigger options in the Ext.form.Labelable mixin.

Similar Threads

  1. Replies: 4
    Last Post: Sep 04, 2012, 9:32 PM
  2. Replies: 0
    Last Post: Sep 27, 2011, 10:24 AM
  3. Replies: 13
    Last Post: Jun 22, 2011, 2:05 PM
  4. IDEA: Define default properties to prevent tag soup
    By reverseblade in forum Open Discussions
    Replies: 2
    Last Post: Aug 03, 2010, 7:56 PM
  5. Replies: 5
    Last Post: Oct 08, 2008, 12:46 PM

Tags for this Thread

Posting Permissions