see setitemreusestrategy() on the gridpanel

-igor


On Wed, Mar 12, 2008 at 9:06 AM, Ryan <[EMAIL PROTECTED]> wrote:
> I have a panel that contains a boolean property to track its state
>  (editMode). I have a page that creates several of these panels by using
>  a GridView, which gets the model from the datasource and passes it to
>  the panels constructor.
>
>  The panel has a Link and its onclick just toggles the editMode boolean.
>  I am not using AJAX, so naturally the page refreshes when the link is
>  clicked. When the page refreshes, new instances of the panels are
>  recreated, thus losing the setting of the editMode member variable.
>
>  I can make the page track the editMode of each panel in various ways,
>  but I was wondering if there is a better way?
>
>  Thanks!
>  Ryan
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to