In Place Editors

Modified: 2009/02/09 12:31 by stians - Categorized as: Community, Extensions, Gaia 3.5, Widgets
As an exercise in building Gaia server controls, I attempted to recreate the script.aculo.us InPlaceEditor and InPlaceCollectionEditorcontrols using Gaia Themis RC1.

Why another InPlaceEdit? The existing Gaia InPlaceEdit does not decode the innerHTML value before displaying it in the textbox. There is a pending feature request for this but in the meantime, I created my own since the Gaia folks make it soooo easy.

I sprained my right pinky while doing a pinky swear so I wrote the project in VB.net (It hurt to type curly brace ;)

InPlaceTextEditor

Events: TextChanged, EditCancelled
Properties: Text, PlaceHolderText(displayed when Text is empty), MouseTrigger, HasButtons, SaveButtonText, CancelButtonText, HighLightColor

InPlaceCollectionEditor

Events: ValueChanged, EditCancelled, GetItems(must be handled)
Properties: Text, Value(stored in a hidden field to support ListItem Text/Value), Items(ListItemCollection), MouseTrigger, HasButtons, SaveButtonText, CancelButtonText, HighLightColor

Screenshots (riveting, I know...)

InPlaceEditors

InPlaceEditors



You can use the binary or follow this guide to use the source classes in your App_Code folder. Enjoy!

-Nathan

ScrewTurn Wiki version 2.0.33. Some of the icons created by FamFamFam.