TRepeater Sample 3
The following example allows users to modify the existing tabular data using a TRepeater. Two validators are used in the repeater to ensure the validity of user inputs. One is to ensure product names are not empty, the other ensures product prices are valid numeric format. After clicking on the save button, the input data is displayed in a table at the bottom of the page.
Name |
Category |
Price |
Imported |
Data['name']%> />
|
|
Data['price']%> />
|
Data['imported']%> />
|
ID |
Name |
Category |
Price |
Imported |
<%#$this->Data['id']%> |
<%#$this->Data['name']%> |
<%#$this->Data['category']%> |
<%#$this->Data['price']%> |
<%#$this->Data['imported']?'Yes':'No'%> |
Computer Parts Inventory |