Custom Column
Custom Column
tdekoekkoek
Posts: 2Questions: 0Answers: 0
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?
"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?
This discussion has been closed.
Replies
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