Results 1 to 6 of 6

Thread: GXT 1.2.4 Multi tabs FormPanel Validation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Apr 2007
    Posts
    20
    Vote Rating
    0
      0  

    Default GXT 1.2.4 Multi tabs FormPanel Validation

    Hi All,

    I am still having the same problem on formpanel validation in mutiple tabs situation.
    Each Tabs Item had it's own formpanel and when user click a button, the events basically
    get each of the formpanel and called isValid().

    As well, The tab panel is using getLayout().setDeferredRender(false).
    It looks like the setDefferentRender does not work.

    For testing purpose:
    * I click button which trigger validation on both formpanel, it does not work.
    * I click on other tab item and then click on button which trigger validation on both formpanel, the validation is working.

    Any suggestion how to get around this?

    Cheers,

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Yes, the problem is within layouting nested, not visible panels. Also this was reported several times. There is no need to open a new thread for that.

  3. #3
    Ext User
    Join Date
    Nov 2008
    Posts
    36
    Vote Rating
    0
      0  

    Default

    I would recommend that you perform validation before changing tabs. If the form is valid, you allow to change the tab, otherwise, you stay in the same tab until the form is validated.

    You can do this implementing some tab's listeners

  4. #4
    Ext User
    Join Date
    Feb 2009
    Posts
    5
    Vote Rating
    0
      0  

    Question

    Hi,

    I am still having the same issue with form validation, the form is not valid until all tabs with validation perform have been rendered. Do you have any solution to that ?

    I have tried tabPanel.setDeferredRender(false) but it doesn't works.

    Any suggestion?

    Eduardo

  5. #5
    Ext User
    Join Date
    Apr 2007
    Posts
    20
    Vote Rating
    0
      0  

    Default

    I haven't found any solution to this and hopefully migrating to GXT 2.0.1 will fixed it. but still having a lot of issues on migration to it.

  6. #6
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
      0  

    Default

    you can switch to the tab each time before you call the isValid() on the tab

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •