Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Remote Sorting with Remote GroupBy
posted

Hi,

I'm having some trouble working with the remote features.  I have a grid with remote sorting and remote grouping.  I am specifying the sortUrlKey, sortUrlKeyAscValue, sortUrlKeyDescValue, groupByUrlKey, groupByUrlKeyAscValue and groupByUrlKeyDescValue.  If I remove the GroupBy feature from my grid sorting works as I expect it to, but when I add in the grouping my QueryString isn't what I would expect to see.  The sorted column is passed in the GroupBy not the Sort that it is passed in without the group by.

For example, I have a column called Title, if I sort by Title with Grouping Enabled my QueryString is:

"groupBy(Title)=asc&page=0&pageSize=25&_=1523460956048"

If I comment out the GroupBy Feature it's: 

"orderby(Title)=asc&page=0&pageSize=25&_=1523461045306"

{
name: "Sorting",
type: "remote",
mode: 'single',
sortUrlKey: "orderby",
sortUrlKeyAscValue: 'asc',
sortUrlKeyDescValue: 'desc',
columnSettings: [
{ columnKey: 'Actions', allowSorting: false }
]
},

{
name: "GroupBy",
type: "remote",
groupByUrlKey: "groupBy",
groupByUrlKeyAscValue : "asc",
groupByUrlKeyDescValue : "desc",
columnSettings: [
{ columnKey: 'Actions', allowGrouping: false }
]
}

I still have the same problem if I change the sorting mode to multi.  What am I doing wrong?

Parents Reply Children
No Data