[CLOSED] How to know if a FormPanel is valid by coding?

  1. #1

    [CLOSED] How to know if a FormPanel is valid by coding?

    Hi,

    I need to show a message to the user when a button is pressed and a FormPanel is not valid.

    Could you tell me please how to know if a FormPanel is valid by coding?

  2. #2

    RE: [CLOSED] How to know if a FormPanel is valid by coding?

    Hi,

    Use the following javascript expression
    FormPanel1.getForm().isValid()
  3. #3

    RE: [CLOSED] How to know if a FormPanel is valid by coding?

    Hi,

    How can I do the same in code behind?

  4. #4

    RE: [CLOSED] How to know if a FormPanel is valid by coding?

    Hi,

    Just pass isValid as ExtraParameter of the click DirectEvent
    <ext:Parameter Name="isValid" Value="#{FormPanel1}.getForm().isValid()" Mode="Raw"/>

Similar Threads

  1. How to Mark Ext.net 2.0 FormPanel as Valid?
    By NickBin in forum 2.x Help
    Replies: 1
    Last Post: Mar 22, 2012, 12:33 PM
  2. [CLOSED] Specified cast is not valid
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 05, 2011, 8:56 AM
  3. Javascript coding patterns / best practise
    By mattwoberts in forum Open Discussions
    Replies: 3
    Last Post: Aug 01, 2011, 12:41 PM
  4. [CLOSED] Coding a "Display Once" tooltip
    By jwf in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: May 21, 2011, 6:59 AM
  5. [CLOSED] How to add ext.msg.alert in C# coding...
    By king1231986 in forum 1.x Help
    Replies: 4
    Last Post: Nov 19, 2008, 5:35 AM

Posting Permissions