Creating a Header with the WebMenu and WebToolbar

When you first create an Iron Speed Designer application, a Header.ascx (i.e. Web User Control) file is also created, which is used in the various page templates to display content at the top of each page. By default, the Header contains an image tag for a logo, though it is not limited to the image alone.
Creating a Master-Multi-Detail Page with WebTab
Making web applications look and function like traditional Windows applications can be challenging. One example of this is the Master-Multi-Detail page where multiple detail record sets are contained within tabs of a TabControl under the Master record. The WebTab control has a TargetURL property that allows you to display a page inside a tab using an iframe. In Iron Speed Designer, it's easy to create an empty page with a bound table panel that would represent a detail record set. Put these two concepts together with a few tips
Binding to a WebGrid
The Infragistics WebGrid is a very powerful grid control that can be bound to a variety of data source types including a DataTable. The DataTable can be easily created from the GetList method of Iron Speed Designer's TableAccess class (see the Code Customization Wizard topic, "Creating a DataTable Object"). This is fine and easy to accomplish for read-only purposes. However, it gets fairly complex when you attempt to update data from the WebGrid with this approach. Consequently, when I use the WebGrid control (seldom), I simply redirect to an AddRecord or EditRecord page, from the selected WebGrid row, to update data.
Tip: Upgrading to a New Version of Infragistics Controls
Here's a tip that will save you a great deal of frustration. Infragistics provides a wonderful utility to upgrade your Visual Studio .NET project to a new version of Infragistics controls. Primarily, it updates the Register tags in your .aspx pages with the new assembly name etc. So, guess what happens when you open your application in Iron Speed Designer and build it. The HTML template source files for all your pages, which contains the "old" Register tag overwrites the HTML of your .aspx pages that the Infragistics utility just fixed. Thus, you end up back at square one. So, be sure to copy the "new" Register tag from the ASPX view and replace the "old" one in the HTML view for all your pages that contain Infragistics controls.
Conclusion
Although this article has focused on Infragistics controls, other third-party controls can be implemented similarly. Iron Speed Designer provides an extensible open architecture to enhance your applications with virtually any style or functionality. Also, check out the Iron Speed Designer Knowledge Base "Using Third Party Controls" for additional information. Although the above screen shot examples have not been formatted completely, Infragistics controls have extensive formatting capabilities. Now, if only Infragistics would release the same "Outlook" type (i.e. calendar, task, etc.) controls for ASP.NET apps that they currently have for Win Forms apps, then I would be a truly happy camper.
About The Author
Michael Sumption is President and CEO of GovIS, LLC, a software development, training, and consulting firm in Northern California. Michael has been developing applications with Infragistics controls for 3+ years and has been using Iron Speed Designer for over a year.
|