⚠ 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 forum is read-only and soon will be archived. ⚠


Custom column

custom column

  • Please log in to reply
2 replies to this topic

#1 dquintero

dquintero

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 21 October 2017 - 08: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



#2 darkstalker

darkstalker

    Member

  • Members
  • PipPip
  • 26 posts

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

#3 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 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.groceryc...te-custom-model

Regards

Johnny







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users