Adding an extra column when using server side
Adding an extra column when using server side
I am using datatables 1.7.2 and server side execution.
I get 11 columns from my server side object and need to add a column with check boxes having its value set to the value of one of the 11 properties in my server side object.
How would do that?
Thanks!
I get 11 columns from my server side object and need to add a column with check boxes having its value set to the value of one of the 11 properties in my server side object.
How would do that?
Thanks!
This discussion has been closed.
Replies
Allan
I am using ASP.NET MVC and my server side object should not change in order to accomplish this, I think.
It is a ViewModel but do I really have to add, say an extra ID column, just to feed a checkbox column?
Aren't there a way to get an extra column using client side config?
Cheers!
::m
Allan
regarding ..."Sure there is :-). Use fnServerData ( http://datatables.net/usage/callbacks#fnServerData ) to go through the returned array and for each row returned add the column with the value you want.",...
Kindly provide a sample - i can't seem to figure it out on my own.
Thanks.
You can check out this simple work around I made for adding an extra column. It is located at: ( http://fbta.tumblr.com/post/1374357393/adding-extra-columns-in-jquery-datatable )
Regards,
Allan
I need your help, please
Regards, ANdrew
<?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']; ?>
I need to add a 4 columns, how can i do than. I got my values of php code.
I need more columns, Allan, please I need your help.
Regards Andrew