-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editable radiobuttons in table. #1502
Comments
Hi @Rsasbrink! It sounds like you need add a specific parser for that column... It doesn't have a radio parser included, but you should still load in the HTML <th class="sorter-radio">Appointment status</th> Script $.tablesorter.addParser({
id: "radio",
is: function() {
return false;
},
format: function(txt, table, cell) {
var $input = $(cell).find("input:checked");
return $input.length ? $input.val() : txt;
},
parsed: true, // filter widget flag
type: "text"
}); |
The "radio" parser has been included in the |
I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue the discussion in this thread. |
Hi, I have a field with 3 radiobuttons in each row of my table which sets the status of that "appointment row". When I click it it puts a ajax call to my backend. However:
When I click on some of those radiobuttons to set some of those statuses it works and those statusses are getting updated in my backend space. But, when I select another sorting it sorts the table but RESETS those radiobuttons selected values to its original state. After a full refresh (which I don't want) I can see those new values and sort them.
The text was updated successfully, but these errors were encountered: