Skip to Content

SmartFIlterBar SelectOption

I am attempting to set the default filter operator on a smartfilterbar customcontrol:

<smartFilterBar:SmartFilterBar id="gSmartFilterBar" entitySet="Client" persistencyKey="gSmartFilterBar_Explored">
<smartFilterBar:ControlConfiguration key="client_name" label="Client" visibleInAdvancedArea="true"
<smartFilterBar:SelectOption operator="Contains"></smartFilterBar:SelectOption>

When a user types in the filter value and hits the 'Go' button, the filter is still passed to the backend as 'EQ'. I can open the field valuehelp/control, and specifically select 'Contains' as the filter operator, and that seems to work. However, I would prefer if the user can type in the query string and hit Go to acheive the same result.

Is the preferred method to use the 'onBeforeRebindTable()' method instead, grabbing the control key value and manually passing a filter with preferred operator? If so, does that negatively interact with the default method in the custom control (passing EQ as the filter operator)?

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 31, 2018 at 09:55 AM


    I have the same problem. The normal way is typing *xxxx* in the filter field then it would use filter operator contains.
    But I know this is not the same and also I am looking for another way.

    When somebody has the answer this would be very helpful.

    Add comment
    10|10000 characters needed characters exceeded