CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Sorter to ListBox

Print topic Send  topic

Author Message
enko


Posts: 66
Posted: 05/19/2020, 8:23 AM Quote message

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

Posts: 54
Posted: 05/19/2020, 11:16 AM Quote message

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
datadoit


Posts: 7
Posted: 05/20/2020, 8:05 PM Quote message

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
djgjohn

Posts: 50
Posted: 06/12/2020, 12:47 AM Quote message

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 Reply to topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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