ParamQuery grid support forum
General Category => ParamQuery Pro Evaluation Support => Topic started 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 ?
-
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?
-
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
-
you can use dataModel.postData option to pass any dynamic variables not related to sorting, filtering.
https://paramquery.com/pro/api#option-dataModel-postData