column nodes find does not work.

column nodes find does not work.

maxwmaxw Posts: 1Questions: 1Answers: 0
edited April 2018 in Free community support

i followed this example for adding select inputs to the table
but because i did not want to add the <select> to the footer and header i created a row in the beginning. I also wanted
to display the selects on distinct columns so i thought it might be a good idea to give those columns, where i wanted to display
data in it, a class name (rs-node). Unfortunately the find method did not return any result, so i could not insert those selects in the <td> tag.

$(column.nodes()).find('.rs-node')

is this the right approach or is there a different one?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @maxw ,

    Creating a row sounds like a bad way to go, since if you order the page, or filter the data, that row will still be considered. Something like this may be better, it's actually in the header but because the header has two rows, it doesn't look like it is. It would be easy to merge your code and this to change that input element to a select.

    Cheers,

    Colin

This discussion has been closed.