⚠ 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

increase column height instead of width



dux
  • profile picture
  • Member

Posted 23 July 2013 - 16:54 PM

hi! i have a text field, that sometimes, it would contain upto 500 characters.. i just would like to ask if it's possible to increase the height instead of the width of a specific column on the list or if you can limit the max length of the field that the user can view.. im using the flexigrid by the way


davidoster
  • profile picture
  • Member

Posted 23 July 2013 - 22:00 PM

Well, first of all there is a setting under application/config/grocery_crud.php with this line,

 
//The character limiter at the list page, zero(0) value if you don't want character limiter at your list page
$config['grocery_crud_character_limiter'] = 30;
 
I believe the comment is self explanatory. Obviously this is a global setting.
The only other option is to use some clever js/jQ way of getting the td that holds the data or the div itself.
 
Screenshot_3.png
 
If you can do this then you might be able to alter the specific td (or div).

dux
  • profile picture
  • Member

Posted 24 July 2013 - 08:25 AM

thanks davidoster..