This content has been marked as final. Show 2 replies
Awesome! Thanks for posting this, exactly what I was looking for this morning ;-)
My only curly is I have some rows where the checkbox is conditional, it treats the next column as the nth checkbox for that row - if that makes sense.
I'll see what happens if I work how how to hide the checkbox post-render.
Glad it helped :)
If you have only one checkbox that is conditional, you could change the $f_CheckNthColumn function by adding this kind of condition :
if ($x_FormItems(e.rows[d],"CHECKBOX").length == max_number_of_checkboxes || n < position_of_conditional_checkbox) toggle checkbox(n); // all the checkboxes are displayed, or the nth checkbox is before the conditional checkbox else // one (or more?) checkbox is missing if (n == position_of_conditional_checkbox) do nothing; else toggle checkbox(n-1);