for simplicity's sake, i would like to call the same javascript function upon the onclientselectedindexchanged event of all the radComboBoxes in my radgrid's popup user control and run some code if the selected item's text = "OTHER". the function is displayed below:
sender.get_id() returns results like:
how can i get just the "RadComboBox_XXX" portion of the result from get_id(), or do i have to use some other method?
function
OnClientSelectedIndexChanged(sender, eventArgs) {
var
item = eventArgs.get_item()
if
(item.get_text() ==
'OTHER'
) {
alert(sender.get_id())
}
}
sender.get_id() returns results like:
ctl00_ContentPlaceHolder1_RadGridProductionOrders_ctl00_ctl06_Detail10_ctl05_EditFormControl_RadComboBoxTitleCoverStamping
how can i get just the "RadComboBox_XXX" portion of the result from get_id(), or do i have to use some other method?