We are using a dropdown as an input parameter for an LLBProGenDataSource, E.G:
Customers:
<asp:DropDownList ID="ddl" runat="server" AutoPostBack="True">
<asp:ListItem>Spain</asp:ListItem>
<asp:ListItem>Germany</asp:ListItem>
</asp:DropDownList><br />
<cc1:LLBLGenProDataSource ID="llblgenDS2" runat="server"
CacheLocation="Session" DataContainerType="EntityCollection"
EnablePaging="True"
EntityCollectionTypeName="NWTest.CollectionClasses.OrderCollection, NWTest"
LivePersistence="True">
<SelectParameters>
<asp:ControlParameter ControlID="ddl" Name="ShipCountry" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</cc1:LLBLGenProDataSource>
This works well when we would like to filter our customer list by Country. However, we often would like an "All" option, for example:
Customers:
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True">
<asp:ListItem>All</asp:ListItem>
<asp:ListItem>Spain</asp:ListItem>
<asp:ListItem>Germany</asp:ListItem>
</asp:DropDownList><br />
Is there a way to still use the simple LivePersistence model, but implement an all option (that will simply not use the filter)?
Thanks for any help