[CLOSED] AutoFitErrors="false" for all FormPanels in a page ?

  1. #1

    [CLOSED] AutoFitErrors="false" for all FormPanels in a page ?

    Hello,

    I was wondering if it was possible to assign a global default parameter for all FormPanels in a page.

    ext:FormPanel ID="FormTest" runat="server" Frame="true" MonitorValid="true">          
            <Defaults>
                  <ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
                  <ext:Parameter Name="msgTarget" Value="side" Mode="Value" />
                  <ext:Parameter Name="AutoFitErrors" Value="false" Mode="Raw" />
            </Defaults>
            ...
    Just as you can do with a normal Form, using the "Defaults" tag, but for all the page...

    Is that somehow possible?

    Thanks in advance for the answer.
    Last edited by fabricio.murta; Sep 17, 2016 at 1:30 AM. Reason: no user feedback for 7+ days
  2. #2
    Hello Peter!

    All components supports this <Default> block, and its scope applies to whichever components are enclosed by it.

    For example, if your page is enclosed in a <ext:ViewPort />, you can define the defaults there as you shown in your code snippet, and they should apply for anything inside the viewport.

    If you don't use a viewport to enclose all components in the page though, I can suggest you to wrap the page in a <ext:container />, provided for some reason using the viewport is undesired for you (for example if you have the viewport on a master page and don't want the defaults everywhere on the website).

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello!

    We didn't hear back from you for some days now. Did the above help you at all?
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 8
    Last Post: Aug 11, 2015, 2:52 PM
  2. Replies: 0
    Last Post: Mar 13, 2014, 5:34 AM
  3. <%@ Page Language="C#" Buffer="false" %>
    By zanotto in forum 2.x Help
    Replies: 2
    Last Post: Nov 21, 2013, 5:32 PM
  4. [CLOSED] Hidden="true" behaves as Visible="false"
    By marco.morreale in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: May 28, 2012, 4:17 PM
  5. Replies: 3
    Last Post: Dec 15, 2010, 3:07 PM

Posting Permissions