I am sorry to see that you didn't like the answer that Svetlina provided, but please note that it was the best that we could give at this time. The code that James sent was working as expected and should not cause a problem as the one that he reported. The beta site in question was quite complex and just by checking the behavior and examining the HTML dump we were not able to pinpoint the reason for the problem.
That is why Svetlina asked for additional details and attached a small sample to this thread which James could check and tell what are the differences between it and his exact setup and logic. We, however haven't received reply from him.
If you experience the same problem, please provide more information about the exact setup and if possible, please rework Svetlina's sample page so it reproduces the problem and send it back to us - we will check it right away and do our best to help.
All the best,
the Telerik team