I believe Perryl answered that here on the forum somewhere.. I could be wrong though.
As much as I know, you need to change elements.data and a few other things as well. I don't do it myself. But use the search and you should find something.
Hope you figure it out!