dose Form Panel isValid() method validate the content section items

  1. #1

    dose Form Panel isValid() method validate the content section items

    when adding a user control that contains a textfield with AllowBlank ="false" to a fomr panel content then try to check the isValid() method for the form panel it will give you a true result which is wrong.

    So,dose Form Panel isValid() method validate the content section items????

    i use the following code:

    Ext.Net.FormPanel oPanel = new Ext.Net.FormPanel();
    oPanel.ID = "Test1";
    oPanel.Height = 50;
    oPanel.Border = false;
    
    Control oControl = this.LoadControl("ITEC_Hijri2.ascx");
    oControl.ID = "ITEC_Hijri1";
    
    
    
    oPanel.ContentControls.Add(oControl);
    pnlBuildForm1.UpdateContent();
    
    oPanel.Render(pnlBuildForm1, 1, RenderMode.InsertTo);
    
    ResourceManager1.Controls.Add(oPanel);
  2. #2
    Hi @ITECH-Developer,

    Please wrap the TextField in a FormLayout control. Then it should work.

    Also please remove
    pnlBuildForm1.UpdateContent();
    and
    ResourceManager1.Controls.Add(oPanel);

Similar Threads

  1. Dynamically Render user control into panel content section
    By ITECH-Developer in forum 2.x Help
    Replies: 1
    Last Post: Oct 08, 2012, 8:11 AM
  2. Replies: 13
    Last Post: Jun 22, 2011, 2:05 PM
  3. Replies: 12
    Last Post: Mar 24, 2011, 5:38 PM
  4. .isValid an ext:Panel
    By JonG in forum 1.x Help
    Replies: 2
    Last Post: Oct 27, 2009, 1:18 PM
  5. [CLOSED] Form Validation getForm().isValid();
    By CMA in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 24, 2009, 10:45 AM

Tags for this Thread

Posting Permissions