⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Adding number separator in GC



Amirul Syahmi
  • profile picture
  • Member

Posted 12 January 2017 - 03:36 AM

Hye, im new to grocerycrud and currently using codeigniter as my framework. My question is how to add number separator in GC as the person input the number value , it automtically separate the number 

e.g  input : 1000000

       output : 1,000,000

 

thankyou in advance


Amit Shah
  • profile picture
  • Member

Posted 18 January 2017 - 02:27 AM

Hi Amirul Syahmi

 

There is a feature called - callback_column - what you need to do is add the callback for the column with that number... in that function u need to do the formatting an return it back.. if u refer to the documentation - u will get a glimpse of what i am saying..

 

Happy GCing :)


Amirul Syahmi
  • profile picture
  • Member

Posted 14 February 2017 - 09:04 AM

Hi Amirul Syahmi

 

There is a feature called - callback_column - what you need to do is add the callback for the column with that number... in that function u need to do the formatting an return it back.. if u refer to the documentation - u will get a glimpse of what i am saying..

 

Happy GCing :)

Hi, thankyou IT WORKS 100%. FINALYYYYYY I CAN MAKE IT HAPPEN.   :P  :)  :)