ComboBox in datatable won't send updated value to server

ComboBox in datatable won't send updated value to server

redsoxfredredsoxfred Posts: 1Questions: 1Answers: 0

I have been able, using the examples, to hook up my sql server table to a DataTables using MVC, json and datatables.

So far so good.

I am able to do inline editing and editor editing.

My table is something like this
Field 1 ID
FIeld 2 Code
Field 3 Description
Field 4 OtherTableId (Foreign Key) => how do i send update of the select list to the server
Field 5 Active (bool) => how do i bind this and send updates
I am able to update fields 2 and 3 inline no problems.

I was also able to add a select control and populate it using a json string return by a getJson call.

I am also able to use a select list drop down to populate the value for the Other Tables Id to replace the ID value by the Description of the Foreign Key Record. The drop drown cell works well.

2 things don't work

1) I can change the selected value in the drop down, but the changes are not saved. When I go to another field, I lose my change. It works in the editor.,

2) the checkbox is not using the bool value and also not updating itself if i click it. It works in the editor however.

So i need help to bind properly my checkbox and also to send

This discussion has been closed.