Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    102
    Answers
    1
    Vote Rating
    1
    sj_tt6 is on a distinguished road

      0  

    Default Unanswered: Dynamic Form design question

    Unanswered: Dynamic Form design question


    Hi,

    I'm redesign my Family registration page. I want to use Fieldsets, one for the husband data (fname, lname, dob...) and another for the wife (fname, lname...) Currently I am thinking what kind of fields I should use for children. I want to have some thing flexible because each family has different number of children or no children.
    I think I may have a grid to list children and a form next to it. The user can fill out the form with a child's data. The user clicks "Add", the child is added to the Grid. However it's not straightforward to me how to read children data when the user submits the registration.

    I'd like to hear other suggestions from people in this forum and I very appreciate any help.

    Thanks,

  2. #2
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    I think your solution is OK. On submitting form, you just need to scan thru the store that is bound to the grid to get out children data and send it thru params option of <form>.submit().

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Posts
    102
    Answers
    1
    Vote Rating
    1
    sj_tt6 is on a distinguished road

      0  

    Default


    Another thought that I can use Ext.grid.plugin.RowEditing for the Children section. In this way I don't need a form to collect a child's data. However how do I do so that when the grid is loaded empty at the 1st time and the user clicks to add a new entry?

    Thanks,

  4. #4
    Sencha User metalinspired's Avatar
    Join Date
    Apr 2012
    Posts
    98
    Answers
    4
    Vote Rating
    4
    metalinspired is on a distinguished road

      0  

    Default


    Create a button that creates a new (empty) record and simply add that record to grid.
    You could also add a something like dblclick event to grid view and achieve the same without the button.

  5. #5
    Sencha User
    Join Date
    Jul 2010
    Posts
    102
    Answers
    1
    Vote Rating
    1
    sj_tt6 is on a distinguished road

      0  

    Default


    Hi vietits and metalinspired,

    Thank you for your tips! I just installed Sencha Architect in the hope that it facilitates the work. Hopefully the learning curve won't take long. I like the dblclick idea and will try it.

    Cheers,

Thread Participants: 2