Editor with select box column returns first value when editing other columns

Editor with select box column returns first value when editing other columns

1ticket1ticket Posts: 11Questions: 8Answers: 1

I have an editor datable with inline editing, one of the columns has a select drop down. If while editing a column that isn't the select box, in the preSubmit event, the value for the selectbox column always is the first id in the select box list. i.e

    editor
        .on('preSubmit', function( e, o, a ) {
            console.log(a)
            data = o.data[Object.keys(o.data)[0]]
            data.subsystem = data.system_name
            data.system_name = Window.credsManager.teams[data.system_name]
        });

Answers

  • allanallan Posts: 50,047Questions: 1Answers: 7,403 Site admin

    That can happen when the value of that field for the row being edited is not in the list of options for the select. Can you give me a link to the page so I can take a look and confirm if that is the case?

    Thanks,
    Allan

  • QueenGeneticsQueenGenetics Posts: 3Questions: 1Answers: 0

    Was this problem solved, if so. What was the solution?

  • colincolin Posts: 5,590Questions: 0Answers: 976

    Hi @QueenGenetics ,

    As Allan said, "That can happen when the value of that field for the row being edited is not in the list of options for the select." That would be the first place to look. If no joy, could you link to your page, please.

    Cheers,

    Colin

Sign In or Register to comment.