MarkItUp.WebControls.ContextMenu : Making a start
A couple of days ago I discussed a string buffering technique that I'm using for a client-side context menu widget. In one of the comments on that post I mentioned that I'd blog about my progress in turning it into a useable ASP.NET ContextMenu Server Control. So here goes...
After some thought I decided that the best model would be to create it as a control that used the "Inner Default Property Persistance" model. That is where a control class has default collection sub-property which requires persistance. In my case these would be the ContextMenuItem instances.
So, the model will be something like: ContextMenu-->Items-->ContextMenuItem. I've mocked up a brief demo and shown some sample syntax for creating the control on my website:
http://www.flws.com.au/ContextMenu/SamplePopUp.html
That demo exists purely as a "mock-up" and, I'm currently in the process of building the server control and refining some of the javascript positioning and rendering routines.