khangwei,

You could use a data view, which lets you define an "emptyText" property, but if you want to use an XTemplate object directly without any of that extra complexity, I think the solution...