Last post Nov 12, 2008 04:45 AM by robroe
Nov 11, 2008 08:50 AM|robroe|LINK
I'm not sure if I'm allowed to post here about the Catalyst.Web.DynamicData controls, but I was wondering whether someone could tell me how I make this produce query string driven links to allow users to return a filtered view via bookmark or URL as is
stated on the CodePlex page (http://www.codeplex.com/DynamicDataFiltering)?
"The DynamicFilterForm (shown below) uses FilterTemplates, similar to FieldTemplates within Dynamic Data to generate the search inputs. The DynamicFilterForm also has the ability to create query string driven links to allow users to return to a filtered
view via bookmark or URL."
I have a boolean field as one of my filters and I would ideally like to filter by all those which are 'true' or 'false' just by navigating to an URL.
Nov 11, 2008 03:22 PM|jheyse|LINK
Take a look at the browse command within DynamicFilterForm. It will produce a url which allows for 'deep linking' search queries.
<asp:Button CommandName="Browse" runat="server">Browse</asp:Button>
Nov 12, 2008 04:45 AM|robroe|LINK
Ah! Superb, thank you, I don't think I would have found that otherwise.
This is probably stating the obvious, but incase someone else needs something like this in the future this is what I ended up with for my dynamic filter repeater.
<asp:DynamicFilterRepeater DataSourceID="GridDataSource" ID="DynamicFilterRepeater1" runat="server">
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DisplayName") %>'></asp:Label>
<asp:DynamicFilterControl ID="DynamicFilter" runat="server"> </asp:DynamicFilterControl>
<asp:Button ID="SearchButton" runat="server" CommandName="Search" Text="Search"></asp:Button>
<asp:Button ID="ClearButton" runat="server" CommandName="Clear" Text="Clear"></asp:Button>
<asp:Button ID="BrowseButton" CommandName="Browse" runat="server" Text="Browse"></asp:Button>