Then, the best idea would be using some spry conditions:
-if the current row {ds_RowNumber} equals the currently
selected rowID
{ds_CurrentRowID}, display a selected tr; if it doesn't,
display a normal tr
-When the dataset loads {ds_CurrentRowID} is 0 by default, so
{ds_RowNumber}=={ds_CurrentRowID} is true for the first row
(0==0)
So, this code should work
<div id="content1" spry:region="dsEvents">
<table id="events">
...
<!-- repeat elements inside the tbody-->
<tbody spry:repeatchildren="dsEvents">
<!-- condition: display this tr with a spry:selected
attribute if
{ds_RowNumber}== {ds_CurrentRowID} -->
<tr spry:if="{ds_RowNumber}== {ds_CurrentRowID}"
class="eventrow"
spry:hover="rowHover" spry:select="rowSelected"
spry:setrow="dsEvents"
spry:selected="selected">
<td>{name}</td>
</tr>
<!-- condition: display this tr without a spry:selected
attribute if
{ds_RowNumber}!= {ds_CurrentRowID} -->
<tr spry:if="{ds_RowNumber}!= {ds_CurrentRowID}"
class="eventrow"
spry:hover="rowHover" spry:select="rowSelected"
spry:setrow="dsEvents">
<td>{name}</td>
</tr>
</tbody>
</table>
</div>
It's a bit hard to explain, but if you look at the code you
will see it's
not that difficult
HTH
--
Andres Cayon
Spain Adobe Dreamweaver User Group
http://www.dwug.es
----------------------
"aquo.com" <webforumsuser@macromedia.com> escribió
en el mensaje de noticias
news:ftjgtf$3du$1@forums.macromedia.com...
> No, actually I am not using ASP to populate the page.
This is Spry.
>
> Help?!?