I am using an asp.net dropdownlist converted into a Select2 dropdownlist.
It works perfectly and I use it throughout the site.
But on this particular page, I want to change the icon from a printer to a checkmark after they have selected and downloaded the file for that row. Kind of an indicator that it is done.
I can step through the code and it is processing after the file download and changing the icons and recreating the ddl. However, the page itself clientside does not show the changes.
(I am NOT asking how to put material icons in the select2 ddl, I know how to do that. I know how to build it. I know how to rebuild it.)
I do reissue and load the js for the select2 on every page load, not just the not postback or postback.
Things I've tried that do not work:
I have added an UpdatePanel. I have made the mode of the panel "Conditional"
I have added a postbackhandler for the updatepanel.
I have added postbacktriggers.
I have made the name of the update panel static.
I have tried as someone said in google, to set the ddls to EnableViewState False, and that doesn't work and is tediously slow.
I have tried loading the js for this in the js pageLoad() function rather than the documentready. Doesn't work at all for a select2.
Anyway, those are what I've tried. If you see something new that I can try, please share it.