Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add new text field in run time?

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wonder how to implement the following design: I would like to have a list of all family members. Of course I can't tell their size in advance so I thought of implementing an add button such as this

First Name Last Name
1__________ _________

[ADD]


When the user clicks the button, a new row will be added with a new text field:

First Name Last Name
1__________ _________
2__________ _________
[ADD]

My problem is in the action. Assuming the user has clicked the add button, how exactly should I handle it in the action?
 
Vani Bandargal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you got to use Indexed properties to handle this
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, do you have some kind of an example?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic