diff options
author | xue <> | 2006-04-15 14:21:40 +0000 |
---|---|---|
committer | xue <> | 2006-04-15 14:21:40 +0000 |
commit | b07499534b6d0ed57a2b80c4d95354ca3791c236 (patch) | |
tree | 29bfeefb0b543abee915dd4051652dabb413005a /demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page | |
parent | 0f380cd025dd9530b8faee7061d1957c5fd6cd9c (diff) |
Breaking change! Changed context of the expressions in template to the template control. Evaluations of <%= %> are now all in PreRender stage.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page index be2f80bc..2864de46 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample3.page @@ -48,11 +48,11 @@ />
<com:TTemplateColumn HeaderText="Rating">
<prop:ItemTemplate>
- <img src="images/star<%#$this->NamingContainer->DataItem['rating']%>.gif" alt="" />
+ <img src="images/star<%#$this->Parent->DataItem['rating']%>.gif" alt="" />
</prop:ItemTemplate>
<prop:EditItemTemplate>
<com:TDropDownList
- SelectedValue=<%#$this->NamingContainer->DataItem['rating'] %>
+ SelectedValue=<%#$this->Parent->DataItem['rating'] %>
ID="Rating">
<com:TListItem Value="1" />
<com:TListItem Value="2" />
|