Inline editor for checkbox change the height of the row
Inline editor for checkbox change the height of the row
nnachi
Posts: 6Questions: 2Answers: 0
Hi
I have just purchased the editor and setup it but I have a problem with the inline editing for checkbox
Indeed, when I click on the checkbox, the row became bigger (please check screenshot)
Any clue for correcting the problem ?
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The inline editor basic example doesn't have this behavior. Maybe its a CSS issue?
A test case showing the issue would help to troubleshoot.
Kevin
I looks like it is probably getting some padding, or something is showing below the checkbox. If you use your browser's development tools to take a look and see what the JSON response from the server is when you click the checkbox, what is it?
Allan
Hi
For now, the application is running on local, I hard coded the JSON response into the html file with 1 or 0 values for the checkboxes
I inspected the code after clicking on the on the checkbox, and in my <td> element I have the following
<
div> generated
It seems that the label generated after the checkbox is causing the height increase of the row
<input id="DTE_Field_active_0" type="checkbox" value="1">
<label for="DTE_Field_active_0"></label>
Is it normal ?
Thx and regards
Hi
I confirm that the label is the value defined on the fields list on the editor (check screenshot)
I have defined the checkbox field like in the example
{label: "Active", name: "active", type: "checkbox", separator: "|", options: [{label: 'AAA', value: 1}]},
Why this label is generated ?
@kthorngren , thank you for your answer but the example does not have checkbox column with inline editing (the first column has a different behaviour)
There is an example with checkbox but it doesn't have the inline editor
Nazim
I have inline editing with checkboxes and don't see the issue. I make sure to turn off inline editing for that column. For testing I turned it back on and see the same behavior you are seeing. This is my code for the inline edit event:
The first column is the row selector column and column 10 is the checkbox column.
Kevin
Thank you @kthorngren ! Now it is working correctly
Indeed, we have to turn out the inline editing for the checkbox columns
Have a nice day