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 ;)
InPlaceTextEditorEvents: TextChanged, EditCancelled
Properties: Text, PlaceHolderText(displayed when Text is empty), MouseTrigger, HasButtons, SaveButtonText, CancelButtonText, HighLightColor
InPlaceCollectionEditorEvents: 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...)
You can use the binary or follow
this guide to use the source classes in your App_Code folder. Enjoy!
-Nathan