You can enable any web control that fire a PostBack to use Folks. Basically, it's possible to use Folks in three different ways:

Adding the REL attribute

Just add the rel attribute to the control. It's value must be folks as shown below:

<asp:Button id="myButton" runat="server" rel="folks" OnClick="myButton_Click" />

Inside a FolksContainer

To partial rendering or enable a group of controls you must use the FolksContainer. It capture its child controls events and post it through Folks. To enable a group of controls with FolksContainer, just add these controls as children of FolksContainer like in Panel control.

<folks:FolksContainer ID="FolksContainer1" runat="server">
	<table border="0">
				<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
					OnSelectedIndexChanged="sampleRadioButtonList_SelectedIndexChanged" >
					<asp:ListItem Value="1">South America</asp:ListItem>
					<asp:ListItem Value="2">North America</asp:ListItem>
				<asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="sampleListBox_SelectedIndexChanged">
					<asp:ListItem Value="1">Brazil</asp:ListItem>
					<asp:ListItem Value="2">United States</asp:ListItem>

Setting the CaptureAll property to true on FolksManager

This feature help enable entire existing applications, justing adding the FolksManager to application MasterPage and set the CaptureAll property to true.

<folks:FolksManager id="myManager" runat="server" CaptureAll="true" />

Last edited Mar 10, 2008 at 4:13 PM by edurdias, version 4


No comments yet.