Decimal number in virtual row (footer row)

QuestionsDecimal number in virtual row (footer row)
Abduljaleel asked 5 years ago

Hello,

I need to show the totals in the footer row as a decimal (without rounding) when selecting some rows.

actually it shows decimal only when load the grid but after start selecting rows, it return rounded amounts.

please help.

Thanks
Abduljaleel

2 Answers
Abu Ghufran answered 5 years ago

Assalamualaikum,

You can use toFixed(2) function to make it 2 decimal place figure.
Also replaced parseInt to parseFloat.

Code: http://phpgrid.org/demo/demos/appearence/footer-row.phps
Demo: http://phpgrid.org/demo/demos/appearence/footer-row.php

Abduljaleel answered 5 years ago

W Alaikumalssalam,

solved now, thank you

Abduljaleel

Your Answer

12 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?