Gaia Earth

Gaia Ajax Repeater example

All though there's no Repeater (or DataGrid, GridView etc) in Gaia, there's nothing stopping you from using native ASP.NET controls within your Gaia controls.
Below is a Gaia Panel that contains a normal ASP.NET Repeater that basically just spits out random number of records every time you push the button below.
Note though that all container controls in Gaia have ONE special property which you should set in your code if you dynamically add controls into (any) container control like the Gaia.Panel.
This property is called "ForceUpdate" and you MUST set this property to "true" to tell the Gaia HTML Rendering Engine that you need it to update the "complete contents" of the container control!
Unless you do this you will get "undefined behaviour"! This is the only place where Gaia diverges from conventional ASP.NET 2.0!
If you're using Fiddler (Int) or FireBernet Explorer)or FireBug (FireFox) you will notice that every time you click "Fill Repeater" you will get a rather large response. (large compared to other Gaia responses, NOT large compared average to ASP.NET Ajax or Anthem.NET responses) This is because since you have "non gaia controls" in the Panel it needs to update it's complete contents...!!
If you then afterwards sniff any of the "Choose me" button clicks you will see we're ack in "Gaia sizes" again... ;)
This is because since the buttons inside the Repeater is Gaia.Button(s) they can update only those portions that needs updating while when the repeater is being filled we need to update the whole content of the repeater control!
Off course you could use a DataGrid, GridView, HtmlTable or whatever other ASP.NET control you wish to use inside the Gaia.Panel... ;)


Selected value (none)