// Other browsers must do it the hard way
switch (typeof _obj)
{
// numbers, booleans, and functions are trivial:
// just return the object itself since its default .toString()
// gives us exactly what we want
case 'number':
case 'boolean':
case 'function':
return _obj;
break;

Serializing a grid columns model

Serializing a grid columns model

I need to serialize the grid's column model. The premise is that I need to be able to store the grid configuration to the database for reuse and I'm trying to accomplish this by serializing the column model and consume it back.

I forgot to mention that I tried stringifying the object but the column model apparently has circular structures

I have a gridpanel. It has a checkbox colums model. i want to select the rows through checkboxes and send those records to server.
I get the data in Firebug but i get a too much recursion error. I am using getSelections() method. i want to know how can i get the id's of the all the elements in the array and post to server. Ext.encode() is not working.