خرید بک لینک

Vote count: 0

Current customization project I'm working on has the requirement of displaying / editing a grid with a "Sort Order" for records. The "SortOrder" field is read only with up/down buttons to allow the user to re-order the items in the grid.

The "SortOrder" column in the DAC is a simple Int field.

The PXSelect statement for the grid is using a OrderBy>> to display the records.

The Grid in the ASPX is a defined with "SyncPosition= true"

I've added an Up/Down button that increments/decrements the "SortOrder" value for the current selected record.

The issue that I'm ruing into is that the first time "Up" or "Down" is clicked, the "SortOrder" field is updated however the rows do not move. Once I click Save to persist the update, the grid then refreshes with the right order.

I've looked through the the rest of the code but all other situations where this is used is for treeviews, not grids.

I've tried adding a View.RequestRefresh() at the end of my Action but this doesn't cause the reorder.

What would be the best way without a Persist after each move to get the Grid to update and reflect the current order from the cache values? As usual I'm assuming I'm overlooking something simple.

Any advice would be appreciated.

asked 5 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 16 ارديبهشت 1395 ساعت: 3:15

صفحه بندی