Atlas Control Toolkit - A Few Demos
I'm finishing up a new article for asp.netPRO Magazine about some of the controls in the Atlas Control Toolkit and wanted to get the sample code posted so people could see a few of the workarounds I ended up doing. Overall I really like the toolkit controls. There are definitely some issues that I encountered that made some things I thought would be simple actually a bit tricky. It's early though....and I know several of the issues I ran into are already known and being worked on. The sample code demonstrates using the following controls:
- HoverMenu - Demo is similar to the one in the toolkit demos. It shows Edit and Delete LinkButtons as users mouse over a GridView row.
- ModelPopup - Shows how to use the control with a GridView to handle deletes. I had to implement a workaround since I couldn't successfully embed a data binding expression in the OnOKScript property value to track the index of the item being deleted. It would just output the expression in the rendered HTML instead of dynamically evaluating it. I'm looking to see if there's something else I should be doing to get that going so I can avoid my hidden field workaround.
- PopupControl - Shows how to dynamically display a GridView control to select a customer ID in a textbox, use the UpdatePanel to handle paging and sorting without postbacks, etc.
- ReorderList - Shows how to reorder a list of links. I didn't realize it would auto-update the database at first (duh...thanks to Simon Allardice for pointing that out) so I wrote all of the code to handle doing the update and left it in just for demo purposes. The control makes it really easy to do "drag and drop" reordering of items though.
Download the sample code here.