onData event is usually fired by the datapath if you changed your data
combo to :
<datacombobox datapath="avatar_prof:/" itemdatapath="avatar_prof/avatar"
textdatapath="@name"
valuedatapath="@value"
selectfirst="true"
showitems="10"
<handler name="ondata">
Debug.write("ondata")
</handler>
</datacombobox>
Does it work ?
On 3/23/07, Bruce <[EMAIL PROTECTED]> wrote:
I have a bit of code that is pretty simple that uses a datacombobox and
a small list of nodes.
<datacombobox itemdatapath="avatar_prof:/avatar_prof/avatar"
textdatapath="@name"
valuedatapath="@value"
selectfirst="true"
showitems="10"
<handler name="ondata">
Debug.write("ondata")
</handler>
</datacombobox>
The combobox gets populated but no ondata event.
Selectfirst is broken.
Looks like i'm going to have to externally manage the data and push it
into the combobox but that shouldn't be necessary.
Thanks,
Bruce