I use a custom renderer with my Listbox. I get all my data fields I need for each ListBox item the same way you do in your Jsfiddle example at http://jsfiddle.net/jqwidgets/ANfqF/ :
`renderer: function(index, label, value) {
var datarecord = data[index];
return “<span>” + datarecord.firstname + “</span>”
},`
It works. But if I make the list reordable with: allowDrop: true, allowDrag: true and then try moving the item, I get error:
Uncaught TypeError: Cannot read property 'firstname' of undefined
I can see that datarecord is not defined, but I can’t find an obvious way to pass my data (multiple fields) via (index, label, value).
Thanks for your help!
iztok