CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> PHP

 Sorter to ListBox

Print topic Send  topic

Author Message

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 !
Italy - CodeCargeStudio ( - Dephi RIO - Lazarus (Free Pascal) - - - - - Windows, Linux, Raspberry Apps.
View profile  Send private message

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.
View profile  Send private message

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.
View profile  Send private message

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.
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.