Editor

Editor

RickardEngbergRickardEngberg Posts: 6Questions: 3Answers: 0

Hello

I'm trying out Editor, and I can only seem to get data from the data table into the edit when I use column indexes. That's ok, but I don't want the column index to be used in the post to the server, si I try to use the field properties data for the column index and name to name to value in the POST. But when i do

            {
                label: "Namn:",
                name: 'name',
                data: 1
            },

the data doesn't show up in the editor. Same thing if I switch name and data.

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi,

    The key is to be consistent - if you are going to use objects, use them for the table as well as Editor. It makes things a lot easier in the long run in my experience! How are you loading the data at the moment? Can you have the server return an array of objects when DataTables requests the load of the data? There is some documentation on that in the manual.

    Regards,
    Allan

This discussion has been closed.