RadGridBinder filtering by taxon?

Posted by Community Admin on 04-Aug-2018 20:49

RadGridBinder filtering by taxon?

All Replies

Posted by Community Admin on 25-Jan-2012 00:00

Is it possible to have a radgridbinder and  have it filter using the built classification controls? I have the classification fields, tags, and categories built into the module.

I have my items tagged with 'Other' but when i go to /home/-in-Tags/Tags/Other I receive a page not found

Server Error in '/' Application.
Page not found
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.Web.HttpException: Page not found
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
[HttpException (0x80004005): Page not found]
   Telerik.Sitefinity.Web.PageRouteHandler.handler_PreRenderComplete(Object sender, EventArgs e) +339
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +9009770
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716


<telerik:RadGrid id="moduleList" runat="server"
            allowpaging="True"
            allowmultirowselection="true"
            pagesize="20"
            skin="Sitefinity"
            AllowSorting="True"
            CssClass="rgTopOffset">
            <PagerStyle Mode="NumericPages" />           
            <ClientSettings EnableRowHoverStyle="true" EnableAlternatingItems="false">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView PageSize="20">
                <Columns>
                    <telerik:GridClientSelectColumn
                    </telerik:GridClientSelectColumn>
                    <telerik:GridTemplateColumn HeaderText="Title" SortExpression="Title" UniqueName="BinderContainer0">
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Description" SortExpression="Description" UniqueName="BinderContainer1"
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
 
        <sitefinity:RadGridBinder id="moduleListListBinder" runat="server" 
                ServiceUrl="~/Sitefinity/Services/DynamicModules/Data.svc/?itemType=Telerik.Sitefinity.DynamicTypes.Model.MyModule.Items"
                BindOnLoad="true"
                TargetId="moduleList"
                DefaultSortExpression="Title"
                DataMembers="Id, Title, Description"
                DataKeyNames="Id"
                ContainerTag="div"
                LoadingPanelID="moduleListLoadingPanel">
                <Containers>
                    <sitefinity:BinderContainer runat="server">
                        <a sys:href="javascript:void(0);" class="editCommand sfItemTitle sfnostatus">Title</a>
                    </sitefinity:BinderContainer>
                    <sitefinity:BinderContainer runat="server">
                        <strong>Description</strong>
                    </sitefinity:BinderContainer>
                </Containers>
        </sitefinity:RadGridBinder>
        <telerik:RadAjaxLoadingPanel ID="moduleListLoadingPanel" runat="server" Skin="Sitefinity" IsSticky="false" EnableSkinTransparency="false"><asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Labels, Loading %>" />
        </telerik:RadAjaxLoadingPanel>

Posted by Community Admin on 30-Jan-2012 00:00

Hi,

 If you want to filter items by category, for example, you can use the Filter Expression property of the RadGridBinder. Here's a sample expression that you can use:

Visible = true AND Status = Live AND Category.Contains((501d50ed-f65d-46be-a1cd-43f54f9068b9)) OR Category.Contains((c36dc00d-de7b-4c12-82d3-dba0aacb9d54))
The category GUIDs can be taken directly from the sf_taxa table in Sitefinity database.

All the best,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed