/** * Returns a json encoded string representation of this state. Also stores the grid state in the session * @return {string} */ public function Value() { $value = parent::Value(); if ($this->grid->getForm()) { //Cache in the session $sessionKey = $this->getSessionKey(); Session::set('FormInfo.' . $this->grid->getForm()->FormName() . '.' . $this->grid->getName() . '.state.key', $sessionKey); Session::set('FormInfo.' . $this->grid->getForm()->FormName() . '.' . $this->grid->getName() . '.state.value', $value); } return $value; }