Search Bar - can't undo any attributes set by JS

Search Bar - can't undo any attributes set by JS

JgibbonsJgibbons Posts: 1Questions: 0Answers: 0

I have a 10 column dataTable with a radio list that hides and shows certain columns. When something is entered into the search bar it hides rows (and secretly hides columns depending on the view), which is fine except when the search entry is deleted from a partial view those columns don't get added back when we switch back to the "All" view. I worked around this by only letting the user enter a search on the "All" radio/view of the table. However, to make sure they don't touch the search bar on other radio/views I disable the radio when a different radio is clicked, this lead me to the issue.

When the default "All" view is changed I can add the disabled attribute to the search or add a class, but when they click back to the all view none of things can be undone. It doesn't matter what it is and I know the Jquery lines are being hit. How is that I can set attributes or add a class to the search bar but I can't undo any of it?

Replies

  • allanallan Posts: 63,356Questions: 1Answers: 10,447 Site admin

    Can you give me a link to a test page showing the issue please? I don't know why it isn't working at the moment.

    Allan

This discussion has been closed.