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 |
Parent->DataItem['name']%> />
|
|
Parent->DataItem['price']%> />
|
Parent->DataItem['imported']%> />
|
ID |
Name |
Category |
Price |
Imported |
<%#$this->Parent->DataItem['id']%> |
<%#$this->Parent->DataItem['name']%> |
<%#$this->Parent->DataItem['category']%> |
<%#$this->Parent->DataItem['price']%> |
<%#$this->Parent->DataItem['imported']?'Yes':'No'%> |
Computer Parts Inventory |