Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Sorting does not work for repeating grid with expandable section

SA-10278

Summary



You, as an application developer, configure a repeating layout referencing a list property. Sorting is enabled in all columns.
When the user opens the layout and clicks a column to sort it, the section is refreshed but it does not sort on the column.


Error Messages



Not Applicable

Steps to Reproduce



1. Create a repeating layout with a reference to page list.
2. Include default sorting.
3. Double check with columns for 'Sorting' check mark to be enabled.
4. Navigate to the end user UI and click on a column header.


Root Cause



The root cause of this problem is a defect in customer application code/rules. 

Property reference in Repeat Grid is having complex structure which is causing this issue. 

User:
gridAction=SORT&gridActivity=pzGridSortPaginate&PageListProperty=.UniqueSR&ClassName=Pega-Data-SR&BaseReference=CAPortalInteraction.ApplicationHistory&ReadOnly=true&sortProperty=.AAA.Coverage(1).ApplicationInfo.InputDate&sortType=ASC&pyPageSize=20&showSaveDiscard=true&isReportDef=false&prevSortProperty=&prevSortType=&customSortActivity=

OOTB:
gridAction=SORT&gridActivity=pzGridSortPaginate&PageListProperty=.UniqueProperty&ClassName=Data-Party&BaseReference=&sortProperty=.pyLastName&sortType=DESC&showSaveDiscard=true&isReportDef=false&prevSortProperty=.pyLastName&prevSortType=ASC&customSortActivity=

Resolution



Change Repeat Grid reference to direct reference instead of complex reference as below.

Use:
OOTB: 
sortProperty=.pyLastName

Instead of:
User: sortProperty=.AAA.Coverage(1).ApplicationInfo.InputDate

Published June 12, 2015 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us