Custom Filter to SQL data source

Uma Attili asked on November 6, 2015 17:49

I have a SQL data source connecting to an external SQL database and using a basic repeater to display the data. Now want to filter the data source using a custom filter by providing the filter name to it. There is no option to attach the filter to the SQL Data source.

Does anyone know how to do this? FYI, i'm using Kentico 8.2

Thanks in advance!

Recent Answers


Brenden Kehren answered on November 7, 2015 15:22

I believe the FilterName of the filter has to be the same as the sql datasource webpart ID.

0 votesVote for this answer Mark as a Correct answer

Uma Attili answered on November 9, 2015 17:55

Hi Brenden, Thanks for your reply. There is no FilterName option for SQL DataSource webpart. I tried to create a custom datasource but how does it work even if i add a new property "Filter" to it when we use "QueryText/Storedprocedure" to get the data. Is it possible to give the table name and FilterName to SQL Datasource webpart like other datasource webparts? If yes, could you please point me to some article/documentation how to do achieve it?

Appreciate your help! Thanks!

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.