Client Side Validation and Validation Status

  1. #1

    Client Side Validation and Validation Status

    hi,I am total newbie to Coolite and ExtJs.


    I am trying to create a form with a bunch of textfields,date picker and dropdownlists. When the user hits the submit button, I want to be able to show the icon-exclamation next to all the required fields and if possible show a validation summary. It is similar to the FormPanel validation example but I dont want the popup. How can I show a validation summary?


    Can someone help me with this?


    Thank you,
  2. #2

    RE: Client Side Validation and Validation Status

    Hi speddi,

    You can set the .MsgTarget property of the Field to "Side".


    Example


    <ext:TextField runat="server" FieldLabel="Name" AllowBlank="false" MsgTarget="Side" />

    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: Client Side Validation and Validation Status

    The following example demonstrates the use of the MsgTarget property.

    https://examples1.ext.net/#/Form/Mis...dit_Form_View/


    Geoffrey McGill
    Founder
  4. #4

    RE: Client Side Validation and Validation Status

    Thank you, I am able to get that working.

    How do I position the controls with CSS from a file?

    I am looking for a master page design which has a minimum width and has margins to the right and left and grow vertically as needed with a minimum height

    What is the best approach?

    Thank you.
    Last edited by geoffrey.mcgill; Feb 22, 2011 at 5:11 AM.
  5. #5

    RE: Client Side Validation and Validation Status

    You could try the following combination...

    Viewport > CenterLayout > Panel (set .Width as desired).


    Hope this helps.


    Geoffrey McGill
    Founder
  6. #6

    RE: Client Side Validation and Validation Status

    Thank you, will try that.
  7. #7

    Validation

    I want to validate the text field in that i want only text
    i don't want to allow to user to enter number in text field
    Ex:Name field
    Last edited by Shubhangi; Sep 20, 2011 at 1:03 PM.
  8. #8
    Quote Originally Posted by geoffrey.mcgill View Post
    Hi speddi,

    You can set the .MsgTarget property of the Field to "Side".


    Example


    <ext:TextField runat="server" FieldLabel="Name" AllowBlank="false" MsgTarget="Side" />

    Hope this helps.

    Thank you for reply
  9. #9
    Quote Originally Posted by geoffrey.mcgill View Post
    Hi speddi,

    You can set the .MsgTarget property of the Field to "Side".


    Example


    <ext:TextField runat="server" FieldLabel="Name" AllowBlank="false" MsgTarget="Side" />

    Hope this helps.
    ya it will work thanks

Similar Threads

  1. Replies: 6
    Last Post: Oct 07, 2012, 5:14 PM
  2. [CLOSED] Client and Server side form validation best solution
    By FAS in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 09, 2012, 4:33 PM
  3. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM
  4. Client & Server Side Control Validation
    By r_honey in forum 1.x Help
    Replies: 3
    Last Post: Dec 27, 2009, 5:16 AM
  5. Client-side validation for gridpanel editor
    By fquintero in forum 1.x Help
    Replies: 1
    Last Post: Oct 07, 2009, 10:39 AM

Posting Permissions