+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / EventsView FilterExpression by Category

EventsView FilterExpression by Category

3 posts, 0 answered
  1. Kaine Varley
    Kaine Varley avatar
    13 posts
    Registered:
    25 Aug 2009
    25 May 2010
    Link to this post
    Hi,

    I was wondering if there was a way to add a category to the FilterExpressions of the EventsView? After editing the control, I click the Advanced tab and, under the Filters section is a field called FilterExpressions. This has a default value of:

    Publication_Date <= "#now" AND Expiration_Date > "#now"

    I have extended this by adding the following:

    Publication_Date <= "#now" AND Expiration_Date > "#now" AND Category = "My Category"

    But this didn't seem to work. Is there a way of just simply adding a filter expression like this to pick up a category without developing a custom control or provider?

    Thanks,


    Kaine
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 May 2010
    Link to this post
    Hi Kaine Varley,

    The following expression should  be valid

    Publication_Date <= "#now" AND Expiration_Date > "#now" AND Category = "dev"

    I am not able to reproduce any issue with the filtering using the built-in EventsView control. I attached a sample video.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Kaine Varley
    Kaine Varley avatar
    13 posts
    Registered:
    25 Aug 2009
    26 May 2010
    Link to this post
    Hi Ivan,

    Thanks ever so much for your response, it was very thorough. The video explained everything.

    It does work of course, the problem was my side I'm afraid (PEBCAC - Problem Exists Between Computer And Chair).

    Thanks again,


    Kaine
Register for webinar
3 posts, 0 answered