How to set selected row selected in DataTable after Submitting form?
How to set selected row selected in DataTable after Submitting form?
MichaelLand
Posts: 26Questions: 0Answers: 0
Hello,
I have a following problem: I have a html form containing DataTable and html-Submit button. If I choose a row from DataTable, modify it and then save DataTable using html Submit-button DataTable loses it's selected row when submit is done .
In first column of DataTable is a unique Id-field that is generated when inserting row first time into database. I also keep selected row's id in a Hidden field to indicate which row is selected.
After Submit I have this Id but how can I select row in DataTable using that Id value?
After Submit DataTable loses it's selected row but I should show it selected.
Br
Mike
I have a following problem: I have a html form containing DataTable and html-Submit button. If I choose a row from DataTable, modify it and then save DataTable using html Submit-button DataTable loses it's selected row when submit is done .
In first column of DataTable is a unique Id-field that is generated when inserting row first time into database. I also keep selected row's id in a Hidden field to indicate which row is selected.
After Submit I have this Id but how can I select row in DataTable using that Id value?
After Submit DataTable loses it's selected row but I should show it selected.
Br
Mike
This discussion has been closed.