I need to get the client-side instance of a RadComboBox (or the newly-selected value of a RadComboBox) when my RadGrid is leaving edit mode so I can post back the changed value to the server.
The problem is, the client-side id of the object always changes. Also, the RadComboBoxes aren't created at runtime -- they're only created after the user double-clicks a specific row of my RadGrid. Therefore, syntax such as
var SundayLoc = $find("<%= FieldOpsScheduler_ctl00_ctl05_RCB_SunLocale.ClientID %>");
equals FAIL. Until I started getting changing values, I was able to get away with this:
var SundayLoc = $find("FieldOpsScheduler_ctl00_ctl05_RCB_SunLocale");
This worked perfectly every time until I added some row separator objects which now cause the "ctl05" of the ids to always change depending on what row the user puts into edit mode. I've tried using all matters of getting this object and its value, but to no avail.
I was going to try using regular expressions until after reading a community wiki answer by bobince at http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 has brought me to the realization that the temptation to parse HTML with regular expressions is the work of unholy Satan-spawn (that and after further research I've come to the conclusion that regular expressions probably won't help me).
Anyway if someone could throw some ideas my way I'd greatly appreciate it. Thank you in advance.