/**
 * Copyright (c) 2010 eSolutionsGroup
 * All rights reserved.
 * 
 * Author: Timothy Grant Vogelsang <tvogelsang@esolutionsgroup.ca>
 */

var toJSON = function(store) {
	var result = new Array();

	store.each(function(record) {
		result.push(record.data);
	} );

	return Ext.encode( {
		'Data': result
	} );
};

var removeUnselectable = function(view) {
	if(view.mainBody) {
		view.mainBody.select(".x-grid3-cell-inner").set(
		{
			unselectable: ''
		} );
	}
};
