API
Version 7.x > API > Problem Custom filter View modes: 
User avatar
Member
Member
mauricio-thewebsitemarketinggroup.com - 3/25/2013 8:29:03 PM
   
Problem Custom filter
I followed this article

http://devnet.kentico.com/docs/devguide/index.html?developing_custom_filters.htm

Everything was OK until I select a option from any combo box and then put all the combo box at all(option 0), since then I don't get any value

Example:

1. Enter to the link above
2. don't move any filter
3. click on the button "apply filter"
4. bring all the rows stored in the database(because I didn't set any filter)

to get the error

5. change filter any filter for example "industry" set it to "web design"
6. click on the button "apply filter"
7. I don't get any data maybe because any row has that filter
8. put back the filter "Industry" to "All" (all the combo box to "All")
10. click on the button "apply filter"
11. I don't get data "and that is the error or problem" because since then I don't get the data any more

Thanks

User avatar
Member
Member
mauricio-thewebsitemarketinggroup.com - 3/25/2013 9:32:03 PM
   
RE:Problem Custom filter
Url with problem

http://microchannel.twmg.com.au/News-(1).aspx

User avatar
Kentico Support
Kentico Support
kentico_romank - 3/26/2013 3:02:35 AM
   
RE:Problem Custom filter
Hi,

I have visited the URL with your custom filter, but it seems it doesnt work at all, I have tried to apply different filter options, but nothing happens, there are still all records. Have you change anything since your post? Anyway, I would recommend you to follow the article you mention exactly step by step and see if that example of custom filter works for you or you will have a similar problem.

Best regards,
Roman Konicek

User avatar
Kentico Legend
Kentico Legend
Accepted solutionAccepted solution
Brenden Kehren - 3/26/2013 1:48:35 PM
   
RE:Problem Custom filter
I have an example here of a custom filter for location records for a google map. Concept should be the same, but I believe you may be running into page lifecycle issues. If you note in my code, there is no "click" even for the button, the button is there to simply cause a post back and run the code as needed to raise the filtered event for the datasource and bind to the repeater. Your code should not be taking place in the button click event. My filter is a bit unique as I run my code in PreRender, but I believe it is recommended to run it on PageLoad.

User avatar
Member
Member
mauricio-thewebsitemarketinggroup.com - 4/2/2013 5:42:09 PM
   
RE:Problem Custom filter
Thank you is working now