This example shows how to create a property grid from an object. It also demonstrates updating the grid with new values and also a whole new dataset.
Note that the js is not minified so it is readable. See property.js.