Adding a command column with server-side processing

Adding a command column with server-side processing

kkruegerkkrueger Posts: 1Questions: 0Answers: 0
edited September 2011 in General
I would like a command column for each row in my data table. This column will have links that I will handle using javascript to do various operations.

I had this working when the data was in the DOM, but I'm not sure what the best practice is when using server-side processing. Do I need to include the markup for this column in the data I return from the server, or can I somehow define or inject this column client-side (which would be my preference)? Thanks.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    you can define it client-side, i.e. with fnRender. see http://www.datatables.net/ref#fnRender

    to get a blank column from the db, SELECT a blank line or any column, and write over it
This discussion has been closed.