Collumn

Collumn

eduardo12foxeduardo12fox Posts: 17Questions: 0Answers: 0
edited February 2011 in General
I need your help, please. The data tables only show five columns y five heads, HOW can I ADD NEW COLUMNS HTML??
Because I should show 8 columns,my code is the next:

<?php echo $Fila['nrocite']; ?>
<?php echo $Fila['ingreso']; ?>
<?php echo $Fila['c_cod_resp']; ?>
<?php echo $Fila['d_fecha_resp']; ?>
<?php echo $Fila['c_cod_cite']; ?>
<?php echo $Fila['dato1']; ?>
<?php echo $Fila['dato2']; ?>
<?php echo $Fila['dato3']; ?>


when I run the script everything is very tight

Replies

  • GregPGregP Posts: 500Questions: 10Answers: 0
    I think DataTables typically expects to see elements.


    ... X 8


    But I'm not sure why it's partially-working and you're getting 5 columns. You can also set columns in the initialization. Are you doing any special initialization?
  • eduardo12foxeduardo12fox Posts: 17Questions: 0Answers: 0
    but not add more columns when the grid is all squeezed. How do you stretch it provides?
  • eduardo12foxeduardo12fox Posts: 17Questions: 0Answers: 0
    I added more columns to see how horrible it was

    http://www.techall.com.br/Report/themes_techall.php

    How can I fix it?
  • GregPGregP Posts: 500Questions: 10Answers: 0
    Wow, it's really bad, eh?

    I don't really know what's going on. I see a bunch of plugins and options enabled, and the rendered widths of columns compared to rendered width of headers isn't matching up. I personally would start with a basic initialization, using your data, and work from there. Add in your options and plug-ins one by one until you figure out which is breaking it. That'll hopefully get you to solve why the headers and columns don't align.

    The text being 'squished' against each other is just a matter of CSS. You do not have a padding set on your TD elements.
This discussion has been closed.