Loading Configuration
You can load configuration from the server side along with data. In such a case your data will look like this:
{ config:{ columns:[ /* columns configuration here...*/ ], // any extra options here, the same as in constructor... }, data:[ /* an array of data objects here, as in the above samples...*/ ]}
Read more on the topic in the article External Configuration.