⚠ 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

Custom column



dquintero
  • profile picture
  • Member

Posted 21 October 2017 - 20:30 PM

Hi

 

Awesome software.

 

How can i add a custom column to the datagrid. Always get this error:

Cannot read property 'dataType' of undefined

Thanks


darkstalker
  • profile picture
  • Member

Posted 22 October 2017 - 08:49 AM

You need to add the column to the database structure. Then, you don’t need to fill the database field with real values but GC need to find the field in the db structure

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 22 October 2017 - 11:34 AM

Hello @dquintero

 

You should use a customModel for that. For more you can see a specific example here: https://www.grocerycrud.com/enterprise/examples-3/create-custom-model

Regards

Johnny