Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Columns Setting for Align=Centered
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Columns Setting for Align=Centered
#54095
Columns Setting for Align=Centered 9 Years ago Karma: 0
Hi,

I have found what appears to be a minor error in the columns formatting. Let me explain, so you can look into the issue.

I have a simple table that counts data from a mySQL database. The SELECT and FROM for the query is as follows,

SELECT
'Total', SUM(T.Cnt)
FROM (SELECT
COUNT(DISTINCT uSimID) AS Cnt
FROM Simulators

The table simply shows 2 columns, one with the word Total and the second with the total count, Cnt. In the columns settings I have Total set to Align = Centered and it is centered correctly. The Cnt column has an ID set to Cnt and Align = Centered but it is showing LEFT.

Any ideas?

Ken
The administrator has disabled public write access.
 
#54096
Re:Columns Setting for Align=Centered 9 Years ago Karma: 748
Hello,

Could you send a link to a page where the problem occurs?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#54099
Re:Columns Setting for Align=Centered 9 Years ago Karma: 0
Hi, please go to this page on my test site,

sim-x.net/test/index.php/inventoryreport-search.html

Select "Air Canada Flight Training", or any of the organizations listed, and hit the SEARCH button. This will generate a Summary Report. The TOTAL row on the right shows LEFT justified, yet the Column Setting is set to CENTERED.

Maybe the Column ID is not correct, but I cannot imagine what else this column can be referred to as, based on the SQL statement used.

Ken
The administrator has disabled public write access.
 
#54105
Re:Columns Setting for Align=Centered 9 Years ago Karma: 748
Add the following code to "CSS Styles" parameter in module settings:

{$id} TD {text-align:center;}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#54112
Re:Columns Setting for Align=Centered 9 Years ago Karma: 0
Thank you, that fixed the issue. So I know for future, is this a bug in ARI DataTables or simply a limitation? What is "TD" referring to? It is not the ID of the column of data defined in my SQL statement.
The administrator has disabled public write access.
 
#54113
Re:Columns Setting for Align=Centered 9 Years ago Karma: 748
It is not a bug, but it seems an incorrect value is used for "Columns settings -> ID" parameter. We just provided another solution how to achieve what you need.

"CSS Styles" parameter accepts custom CSS rules.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12