Cookie in inMethod-grid

Hi people. I did some things to enable the use of cookies to store the column's state of a inMethod-grid. It works fine here and I think it'd be interesting for the project. I've created two examples to explain how to use it in a DataGrid and in a TreeGrid. Thanks