sampleApp: moved grid specific functionality to general DataModel which can easily use. see from sample.html.