Custom Column

Custom Column

tdekoekkoektdekoekkoek Posts: 2Questions: 0Answers: 0
edited January 2010 in General
How do you create a custom column for say an "Edit" button? If I add a column in the markup I get the error:

"Warning - added data does not match known number of columns"

Surely I don't have to have server-side data for an edit button column?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi tdekoekkoek,

    You don't need to have server-side data, but you do need the right number of columns coming back from the server (hence the warning). What you can do is simply output an empty string, and then do whatever you need to on the client-side to add the edit button.

    The reason the server data response array length _must_ match the number of columns on the client-side is to remove any possibility of ambiguity for where the data should be destined.

    Regards,
    Allan
This discussion has been closed.