Events built-in module: unable to filter by localizable custom field
Hi All,
We’re using Sitefinity 6.1 and having an issue with localizable custom
field filter in Events built-in module. We’re using the standard Events Widget,
set Filter Expression to TileLinkUrl=”” and get the Parse Exception.
If we try to load data manually, then:
EventsManager.GetManager().GetItems(
typeof
(Event),
"TileLinkUrl != \"\""
,
null
, 0, 0)
EventsManager.GetManager().GetEvents().Where(i => i.GetValue<Lstring>(
"TileLinkUrl"
) !=
""
)
EventsManager.GetManager().GetEvents().Where(i
=> i.GetValue<
string
>(
"TileLinkUrl"
) !=
""
)
Hi Vadim,
Thank you for contacting us.
I am afraid that the Filter expressions on Sitefinity content widgets do not work with localizable text. They are only viable for number fields as pointed in our Documentation.
If you want to extend the default events widget in order for you to apply your filter, the getValue extension method is the right way to go. You can attach to the ItemDataBound event of the RadListView of the events list widget and filter each item based on your custom field.
Regards,
Ivan D. Dimitrov
Telerik
Hi Ivan,
Thank you for the info - we'll work around this