ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: astea on July 28, 2020, 05:03:14 pm

Title: Sort indicator not shown after change url to getUrl
Post by: astea on July 28, 2020, 05:03:14 pm
Hi,

on dataModel i use getUrl function and sorting done on server side by some default dataIndx ,
and i want on create grid show sort indicator on this column header

on this example https://paramquery.com/pro/demos/sorting_remote
when i change Url to getUrl i see same issue

where is some way how can i set sort indicator after create page in this case ?
Title: Re: Sort indicator not shown after change url to getUrl
Post by: paramvir on July 29, 2020, 03:42:40 pm
You are supposed to post all sorting related parameters to server yourself when getUrl function is used.

Why do you want to use getUrl function instead of url?
Title: Re: Sort indicator not shown after change url to getUrl
Post by: astea on October 01, 2020, 03:04:55 pm

That what i did i pass sort parameter on url  (DS_General_Queue.svc/General_Queue?filter=ldmnd_stat_id eq 0&$format=json&$orderby=bpart_id asc&$top=100)
and that a reason why i use GetUrl instead url because i have dynamic paramters on this url 
Title: Re: Sort indicator not shown after change url to getUrl
Post by: paramvir on October 08, 2020, 04:03:12 pm
you can use dataModel.postData option to pass any dynamic variables not related to sorting, filtering.

https://paramquery.com/pro/api#option-dataModel-postData