Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom Tables filter on page View modes: 
User avatar
Member
Member
matan - 12/12/2011 8:02:48 AM
   
Custom Tables filter on page
Hi everyone,
I've a simple question: is there any chance to obtain a filter in the "Custom Table Properties" page under CMSDesk-->Tools-->Custom Tables.
This is the scenario: I designed a custom table with 2 fields "Section" and "Code". The idea is to filter the gridview by viewing, for example, only the codes linked to a particular section.

Is this possible or not? I also tried to order the item by clicking on "Section" column header, but this isn't what I need because if I open the edit page and then, after saving, come back to the list, the order clause doesn't exist anymore.

I hope it's everything clear.

Regards.

User avatar
Member
Member
kentico_michal - 12/13/2011 1:46:29 AM
   
RE:Custom Tables filter on page
Hello,

If you are using Kentico CMS 5.x, you will need to modify the following page:

~/CMSModules/CustomTables/Tools/CustomTable_Data_List.aspx

and ensure the filtering using the custom code.

FYI: Kentico CMS 6.0 provides this option by default: Creating filter forms.

In terms of your second question, this is standard behavior, as you open a completely different page by opening the edit page and the order condition is not saved.

Best regards,
Michal Legen

User avatar
Member
Member
matan - 12/13/2011 1:56:27 AM
   
RE:Custom Tables filter on page
Hi Michal,
many thanks for your suggestion. I'll provide to change the page
About my second question I already know that this behavior is the default one. I was only describing what I noticed :)

Regards.
Mauro

User avatar
Member
Member
kentico_michal - 12/13/2011 2:14:41 AM
   
RE:Custom Tables filter on page
Hi Mauro,

Just short update regarding the filtering functionality, the above mentioned page uses the following control ~/CMSModules/CustomTables/Controls/CustomTableDataList.ascx which is based on the standard UniGrid control. The documentation for this control is available here: UniGrid overview.

Anyway, the ordering works in the same way also in Kentico CMS 6.0.

Best Regards,
ML