wwHoverList Invoices

Home | Reset Page | Page generated: 7/24/2008 8:55:14 PM

   

    

Invoice No.DateCompanyNameOrder Total
11074 5/6/1998 Simons bistro Jytte Petersen 262.74
11075 5/6/1998 Richter Supermarkt Michael Holz 592.19
11076 5/6/1998 Bon appetit Laurence Lebihan 1,095.28
11077 5/6/1998 Rattlesnake Canyon Grocery Paula Wilson 1,383.13
11070 5/5/1998 Lehmanns Marktstand Renate Messner 2,009.50
11071 5/5/1998 LILA-Supermercado Carlos González 510.93
11072 5/5/1998 Ernst Handel Handel Boy 5,476.64
11073 5/5/1998 Pericles Comidas clásicas Guillermo Fernández 324.95
11067 5/4/1998 Drachenblut Delikatessen Sven Ottlieb II 94.83
11068 5/4/1998 Queen Cozinha Lúcia Carvalho 2,466.55
11069 5/4/1998 Tortuga Restaurante Miguel Angel Paolino 375.67
11064 5/1/1998 Save-a-lot Markets Jose Pavarotti 4,752.39
123456789


This example demonstrates using the wwHoverPanel class to automatically display the HTML fragment result at the current mouse cursor position. The Url can either be from the same page (default) or from a separate Url (full Invoice). With wwHoverPanel all the messy HTML formatting and positioning is handled for you and you only hook up the the event hooks for onmouseover and onmouseout in the GridView.
If you check the full invoice checkbox, the page posts back and sets different set of properties on the HoverPanel. Rather than an auto open and auto close window the behavior is changed to load data and keep the window open, providing a draggable window that has a close box. Although this example uses code to set this up to provide the dynamic dual-view display, all settings can also be made declaratively on the control directly.

Note also that you can optionally pass form data to the server on these callbacks. For example, the server code checks the status of the above checkbox to decide which data to load and display - the value is passed back on the callback as POST data that can be read by the server code.