enko
Posts: 74
|
Posted: 05/19/2020, 8:23 AM |
|
Is it possible to replace sorters with a listbox to order a table?
An example snipper is appreciate !
Thanks
_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps. |
 |
 |
PCHome
Posts: 57
|
Posted: 05/19/2020, 11:16 AM |
|
You can do it with custom programming but not through CodeCharge Studio directly. However, CodeCharge Studio is all but defunct and it generates obsolete code so good luck getting any support here as very few people still use it. Better to go to a programming site such as stackexchange or stackoverflow.
|
 |
 |
datadoit
Posts: 7
|
Posted: 05/20/2020, 8:05 PM |
|
In your Sorter control replace the <a href> portion with <select> and sort options ASC and DESC. For the grid's client side On Load, use some jQuery such as:
$('#MyGridSorter_MyColumn').on('change', function() {
var url = document.location.href+"?MyGridOrder=Sorter_MyColumn&MyGridDir="+$('#MyGridSorter_MyColumn').val();
document.location = url;
});
You'll still want to do some other data integrity stuff such as grab existing URL parameters before appending the Sorter value. But this should get you going in the right direction.
@PCHome, don't be a whiner. This is still, to this day, the fastest path from point A to point B for web apps. Find another app? Go use it, join their forums, and cry over there.
|
 |
 |
djgjohn
Posts: 52
|
Posted: 06/12/2020, 12:47 AM |
|
Totally agree datadoit!
Cannot imagine life (or app development) without it. Still by far the fastest web application development software.
And thanks for all your input, advice and solutions over the years.
|
 |
 |
|